[antlr-interest] Mismatched Tree Node and lack of StringTemplate output

Cameron Palmer cameron.palmer at gmail.com
Wed Jun 6 13:38:02 PDT 2007


I created a rule to appear in my AST that involved an imaginary token:

dsBody
    : id COLON INT EOL
    iStructElements -> ^(ISTRUCT id INT iStructElements)
    ;

Where ISTRUCT is defined:

ISTRUCT :;

This throws a warning:
The following token definitions are unreachable: ISTRUCT.

Should I worry about this?

Second question...
I am getting This error:
SDFWalker.g: node from line 0:0 mismatched tree node: DOWN expecting VERSION

Thanks,

Cameron.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070606/ed76a27a/attachment.html 


More information about the antlr-interest mailing list