[antlr-interest] discrepancy between antlrworks and antlr generated parser

Gavin Lambert antlr at mirality.co.nz
Thu Apr 9 03:26:41 PDT 2009


At 20:56 9/04/2009, David Cournapeau wrote:
 >> Python doesn't require semicolon statement terminators, does 
it?
 >
 >no, it does not (but adding the semicolon made it work). I did 
not
 >know the above was supposed to be python code.

In general, anything within {} is target language code 
(statements), anything in {}? is a target language expression, and 
anything in [] is sort-of-target-languagey parameter lists ("sort 
of", because ANTLR expects a specific format which might not be 
how the target language usually works).  Anything else is language 
syntax (rule definitions) and isn't target-specific.



More information about the antlr-interest mailing list