Converting to Python3 and adding the option to automatically call the compiler once preprocessed.#1
Merged
Patronics merged 10 commits intoPatronics:masterfrom Dec 14, 2020
Merged
Conversation
… with an argument before it
…ble -s option to automatically invoke the compilers without the -u flag
…ture development :)
Owner
|
I just tested and merged your changes, thanks for the contribution! I also added the -P option to select a path for the compilers, and added a check for it being a valid path, before realizing you'd already added that check. Well, now it checks earlier in the process, so probably good to keep both, you catch could be useful for other compiler issues as well. I also made it so the -u option isn't needed with the -s option for syntax checks, as that was a bit unintuitive to require both. |
Contributor
Author
|
That looks good and useful additions. Thanks for looking at it and adapting it for more universal usability. Apologies for the extra check. It was a finishing touch I thought of later that I tried to sneak in :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the -u option to call the correct compiler to upload or check syntax afterwards. As part of this, the flags from the compiler are accepted and passed on to it.
As there is a separate compiler file for each picaxe chip, this preprocessor now interprets #com and #picaxe directives to call the correct compiler with the correct port. If not specified in a basic file, the -c and -v options can be used instead.
Most of the code to do with calling the compiler and selecting the PICAXE chip is copied from my initial attempts in this preprocessor.