[antlr-interest] My recursive tree walker won't
Cameron Ross
cross at symboticware.com
Tue Dec 5 20:25:37 PST 2006
I've found the problem...
I was explicitly exporting the vocabulary from the parser and not the
tree parser. This caused two token files to be created with
inconsistent type values for the WORD token. This was causing my tree
parser recursion problems.
In resolving this problem I ended up with a warning on the parser
grammar that I was redefining the PWORD token (which I'm pretty sure I'm
not). I resolved the problem by simply removing the token section and
the PWORD token does in fact appear to be defined elsewhere, but I have
no idea as to where. Any thoughts are greatly appreciated.
Cheers,
Cameron.
More information about the antlr-interest
mailing list