[antlr-interest] Java parser not compiling

Kirby Bohling kirby.bohling at gmail.com
Thu Mar 15 16:44:27 PDT 2012


Not that I want to advocate forking, but with git, it should be easy
to maintain ANTLR patches for bugfixes.  I regularly maintain 3rd
party code in local git repos with bug fixes which haven't been put
into a mainline release.  It easy for folks to pickup fixes they want,
and maintain them in tree, with history, and provenance about where
all the code came from.  Publish to github or bitbucket, and we it'd
be a service to the community.

Kirby


On Thu, Mar 15, 2012 at 6:10 PM, Kieran Simpson <kierans777 at gmail.com> wrote:
> Eric (and list),
>   Robin's issue appears to be for the same reason as my problem (see
> http://antlr.markmail.org/search/?q=backtracking+and+labels#query:backtracking%20and%20labels+page:1+mid:mndxvuoyyfivor6y+state:results
> )
>
> Ter's reason for backing out his fix is that "Sam Harwell is fixing
> differently."
>
> 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.
>
> Cheers,
>
> On 23/07/64 5:59 AM, Eric wrote:
>> Hi Robin,
>>
>> It is a know bug. Ter fixed it then backed it out.
>>
>> See:
>> http://antlr.markmail.org/search/?q=%22void+%3D+null%3B%22#query:%22void%20%3D%20null%3B%22+page:1+mid:wr44syoliwmy6ors+state:results
>>
>> You can use http://antlr.markmail.org/ to search previous post at
>> antlr.orglist.
>>
>> For your question I used "void = null;"
>>
>> Not what you wanted, but it is an answer.
>>
>> Try using 3.3.
>>
>> Eric
>>
>> 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 :)
>>> Robin
>>>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list