Skip to content

basic AST question #228

Answered by d-frey
wtholliday asked this question in Q&A
Discussion options

You must be logged in to vote

You don't have to build the AST yourself, we already offer support for that. See https://github.com/taocpp/PEGTL/blob/master/doc/Parse-Tree.md. I wouldn't worry too much about allocations (we have some optimizations in place). Instead, look at our filters and transformation options, which can transform the parse tree nodes into an AST.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by d-frey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #228 on December 09, 2020 07:50.