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

Parser and printer module #81

Open
bugdea1er opened this issue Sep 8, 2022 · 0 comments
Open

Parser and printer module #81

bugdea1er opened this issue Sep 8, 2022 · 0 comments

Comments

@bugdea1er
Copy link
Contributor

bugdea1er commented Sep 8, 2022

It seems that this tool should be able to work with source codes or even with source files directly.

For example, in the current implementation of the checker module in py2eo, to use the astranaut, I use our custom python parser, convert from our tree to the astranaut tree, run the TreeTransformer, then convert the tree back to our view and use our printer. But in this situation, I don't need the tree at all, I only need the input file to be mutated by the rule I'm passing in.

It seems that the lack of parsing and printing codes greatly reduces the versatility of the tool, because the user needs to parse and print for each grammar again.

Do you think it is appropriate to build in this tool support for interacting with source codes for this grammar (for example, in the same format as antlr accepts)?

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

No branches or pull requests

1 participant