[antlr-interest] To AST or not to AST?
Andy Tripp
antlr at jazillian.com
Tue Jun 19 15:02:41 PDT 2007
I'd say the general rule is to use actions in the parser for simple stuff.
If things start to get non-trivial where you're starting to do serious
manipluation
of the AST, then have the parser produce the AST, and then transform the
AST in a separate step (with a treewalker).
Gevik Babakhani wrote:
> Hi,
>
> Regarding interpreting using AST. I was wondering in what situations it is
> practical to use AST and when to just interpret using actions in the
> parser?
>
> Thank you.
>
>
>
More information about the antlr-interest
mailing list