[antlr-interest] Article against TreeWalkers
Jeff Barnes
Jeff.Barnes at codesic.com
Thu Mar 9 14:14:14 PST 2006
Andrew sez:
> You are parsing a 1-D input and producing a tree output, right? What
> am I missing here?
Terence sez:
<snip> Once you have a
tree, you need to walk it either by hand or by grammar. By grammar,
you can serialize a tree by adding imaginary nodes UP and DOWN that
encode 2D aspect.
Jeff sez:
So, why aren't there UP and DOWN tokens in the tree metalanguage? Or am I missing something? Methinks that would coolify a TreeWalker.
Regards,
Jeff
More information about the antlr-interest
mailing list