[antlr-interest] is a non unique reference - error when trying to fix
Hed Bar-Nissan
hed.barnissan at gmail.com
Sat May 3 06:43:28 PDT 2008
I get on this:*
question: 'question:' WS SENTANCE ';;' WS
'answer:' WS SENTANCE ';;'
{System.out.print("Question is" + $SENTANCE.getText() + ", Answer is " +
$SENTANCE.getText());} ;*
SENTANCE is a non unique reference which is fair,
but when i try to fix like i found here:
http://www.antlr.org/pipermail/antlr-interest/2008-April/027854.html*
{System.out.print("Question is" + $SENTANCE1.getText() + ", Answer is "
+ $SENTANCE2.getText());} ;
*
Generation succeeds but i get a compilation error because these lines are
not generated:
Token SENTANCE1=(Token)input.LT(1);
A bug or misuse?
Thanks
Hed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080503/494052f6/attachment.html
More information about the antlr-interest
mailing list