[antlr-interest] ANTLR generating invalid Java
Oren Ben-Kiki
oren at ben-kiki.org
Wed Aug 6 15:23:17 PDT 2008
The attached .g file causes ANTLR version 3.0.1 to generate invalid
Java (also attached, gzipped).
See for example line 1758 - where is the "n" rule parameter variable
supposed to come from? Could it be that back-tracking and rule
parameters don't mix?
There are also some pretty weird if statements - see line 597 for an
extreme example.
Any ideas?
Thanks,
Oren Ben-Kiki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Yaml.g
Type: application/octet-stream
Size: 3103 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080806/160dadde/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YamlParser.java.gz
Type: application/x-gzip
Size: 8581 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080806/160dadde/attachment-0001.gz
More information about the antlr-interest
mailing list