[antlr-interest] Newby Question: Hello world example with ANTLRWorks 1.2.3
Jim Idle
jimi at temporal-wave.com
Fri Sep 25 13:19:26 PDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090925/e0e5330b/attachment.html
More information about the antlr-interest
mailing list