[antlr-interest] Java parser not compiling
kierans777 at gmail.com
Thu Mar 15 16:10:17 PDT 2012
Eric (and list),
Robin's issue appears to be for the same reason as my problem (see
Ter's reason for backing out his fix is that "Sam Harwell is fixing
Is it possible to put the fix back in (or at least send a patch of the
changes to the list) temporarily until Sam's fixes are integrated? Doing
so would allow those of us who are blocked by this bug to continue (as
it's been ~5 months). I'm quite happy to run with my own patched
version of Antlr until an official release can be made, but I don't want
to have to revert back to Antlr 3.3.
On 23/07/64 5:59 AM, Eric wrote:
> Hi Robin,
> It is a know bug. Ter fixed it then backed it out.
> You can use http://antlr.markmail.org/ to search previous post at
> For your question I used "void = null;"
> Not what you wanted, but it is an answer.
> Try using 3.3.
> On Thu, Mar 15, 2012 at 8:19 AM, Robin<diabeteman at gmail.com> wrote:
>> Hello list,
>> I'm trying to use this grammar
>> http://www.antlr.org/grammar/1207932239307/Java1_5Grammars with antlr-3.4
>> The grammar compiles into java classes without problems:
>> $ java -cp /c/integ/antlr/antlr-3.4-complete.jar org.antlr.Tool Java.g
>> $ ls -l *.java
>> -rw-r--r-- 1 S0030382 Administ 159k Mar 15 11:15 JavaLexer.java
>> -rw-r--r-- 1 S0030382 Administ 1.0M Mar 15 11:15 JavaParser.java
>> But the generated parser has compile errors:
>> $ javac -cp antlr-3.4-complete.jar JavaParser.java
>> JavaParser.java:23842: illegal start of expression
>> void =null;
>> 1 error
>> I guess the grammar must be updated in order to work with antlr 3.4.
>> Can you tell me what must be done?
>> Thanks in advance :)
More information about the antlr-interest