[antlr-interest] Approach to Multiple Passes using Tree Grammars without Filters (C#)?
Rob Dougan
rob_dougan at sympatico.ca
Thu Jul 30 11:48:29 PDT 2009
Antlr 3.1.3 does not have tree filters.
Pass 1: lex/parse produces AST,
I would like to do multi-pass processing on AST produced in first pass.
Pass 2: Tree grammar A (AST): variable defs, build symbol table etc
Pass 3: Tree grammar B (AST): static type checking etc.
Pass 4: Tree grammar C (AST): execute
If i do not have tree filters, do I have copy the tree grammar three times and modify the actions to accomplish the task?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090730/cb4cbedd/attachment.html
More information about the antlr-interest
mailing list