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

Convert parse tree into AST #6

Open
pawandubey opened this issue Nov 10, 2017 · 0 comments
Open

Convert parse tree into AST #6

pawandubey opened this issue Nov 10, 2017 · 0 comments

Comments

@pawandubey
Copy link
Owner

Right now the parse tree returned as the result is too crowded with junk because of the way the parsing is handled.

For non-terminals/sequences if there is only a single child, it should be extracted into a terminal.
Likewise if there are no children, it should be gotten rid of.

This would help return a "clean" AST which is easier to operate on.

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