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
Parse Tree #19
Comments
By default PEG stores an AST in a "flat array tree" format. Each array element is a token16 or token32:
|
An AST() function has been added. |
Really cool. |
Hi
We are trying to write a parser for a grammar that needs more lookahead than what LR(1) in http://code.google.com/p/gocc/ provides. I am pretty sure we will be able to Pegify the grammar, but I was wondering if we are able to access the parse tree in some way or is it easy to build an AST in a bottom up way in this PEG implementation?
We have really easy to use SDT rules in gocc to build up an AST in a bottom up way.
I have not used PEG before, but I have read an article and I am really amped :)
Please help, Thank you
Walter Schulze
The text was updated successfully, but these errors were encountered: