[antlr-interest] Building AST by hand
Robert Soule
robert.soule at gmail.com
Tue Mar 10 08:06:21 PDT 2009
Hi,
I'd like to build an AST by hand (not by parsing some input), and then
send the AST to a tree grammar to print. My hand-written code looks
very similar to the code in the parser, except rather than matching a
token, I just create the empty tree nodes.
This maybe sounds a bit crazy, but is there some way to somehow
turn off matching in a grammar, and generate some sort of tree factory
instead of a parser?
thank you,
Robert
More information about the antlr-interest
mailing list