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

Remove AST tree balancing and move to the parser #13

Open
JosephLenton opened this issue Jan 19, 2015 · 0 comments
Open

Remove AST tree balancing and move to the parser #13

JosephLenton opened this issue Jan 19, 2015 · 0 comments

Comments

@JosephLenton
Copy link
Member

Due to how the parser algorithm was designed I had initially presumed it didn't support correctly balancing expressions when they are parsed. I was wrong, it does if things like expressions are correctly broken into multiple stages.

The wikipedia page for parsing expression grammars has an example of this http://en.wikipedia.org/wiki/Parsing_expression_grammar

Tree balancing should be fully removed from the AST and implemented in the parser.

Test for performance changes though.

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

No branches or pull requests

1 participant