[antlr-interest] what does 'UP' AND <UP> mean?
micha
micha-1 at fantasymail.de
Mon Mar 2 13:50:22 PST 2009
Am Monday 02 March 2009 22:09:23 schrieb YingAnnie:
> Hello,
>
>
> I am playing with Tree grammar, I got the error today:
>
> F:\Treegrammar.g: node from after line 9:15 required (...)+ loop did not
> match anything at input 'UP' F:\Treegrammar.g: node from after line 9:15
> mismatched input 'MULTIPLICATIVE_EXPRESSION' expecting <UP>
that means that your parser generates a different tree than the tree parser
expects.
> what does 'UP' AND <UP> mean?
>
the parser inserts <up> and <down> tokens to construct the tree;
<node-type> <down> children <up>
you can print the tree to see this (and check it)
cheers,
Michael
More information about the antlr-interest
mailing list