Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace broken decommenter script with a lexer (tandy-decomment) #55

Open
wants to merge 54 commits into
base: main
Choose a base branch
from

Conversation

hackerb9
Copy link
Contributor

@hackerb9 hackerb9 commented Feb 23, 2024

Closes #54 .

Hackerb9's m100-tokenize program is greatly improved and should (hopefully) now work on MacOS.

This new solution only relies on a working C compiler -- the actual source code (written for Lex) is not included and only the generated C files are present. The Makefile automatically compiles and uses the m100-tokenize programs in the "adjunct" directory.

Update: The only thing left to do is figure out the file format for N82 BASIC.

Previously sequential commas were not matched.
Uses tandy-tokenize and tandy-decomment from
https://github.com/hackerb9/tandy-tokenize.

Source code is included in adjunct directory. If the user does not
have it already installed, they can run 'make tokenize'.

Note, this is not the actual flex source code, but the generated C
files.
Instead of requiring people to install it by hand and put it in the
path, just use the copy in adjunct.
@hackerb9
Copy link
Contributor Author

Hi! I've fixed up the tokenizer to be much better, plus I made it so that GitHub will automatically create a new release (with appropriately bundled files) whenever the tags are updated. For example

git tag -a v0.m-beta00 -m "Trial version of new release with improved tokenizer"
git push --tags

When I did that, it created this release in my repository: https://github.com/hackerb9/M100LE/releases/tag/v0.m-beta00

The tag name "v0.m-beta00" can be anything you want.

@hackerb9
Copy link
Contributor Author

I've added some more changes which now allow all the tokenization code to check the build on the virtual MacOS environment provided by GitHub. The hope is that now you'll be able to run make on your home computer and have it work. You will need to brew install gawk.

If it doesn't work, you can run the tokenization program remotely just by using the git push --tags I mentioned earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adjunct/removecomments should be replaced
1 participant