On 09/25/2009 12:50 PM, Simon Gubler wrote:
> Hi all
>
> The following grammar compiles with ANTLRWorks 1.2.3 but when I debug
> it with "1+2+3" it generates a Parse Tree with the following elements:
> root->statement->MissingTokenException.
>
> In the file SimplePlusGrammar.g:
> grammar SimplePlusGrammar;
> statement : INTEGER (PLUS INTEGER)*;
> PLUS : '+';
fragment DIGIT : ('0'..'9');
> INTEGER : DIGIT+;
>
Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address