[antlr-interest] Re: How to use antlr

micheal_jor open.zone at virgin.net
Thu Jun 17 09:11:03 PDT 2004


--- In antlr-interest at yahoogroups.com, "jay_ayliff" <jay_ayliff at c...>
wrote:
> Ah, that did it. I thought CLASSPATH was a *NIX version of PATH. Now 
> I find that the HTML.G file will compile, but when I run ANTLR 
> against the csharp\java\java.g file I get this:
> 
> F:\antlr-2.7.3\examples\csharp\java>java antlr.Tool java.g
> ANTLR Parser Generator   Version 2.7.3   1989-2004 jGuru.com
> error: Token stream error reading grammar(s):
> java.g:1627:17: unexpected char: ')'
> java.g:1627:17: rule classDef trapped:
> java.g:1627:17: expecting SEMI, found ')'
> error: aborting grammar 'JavaRecognizer' due to errors
> Exiting due to errors.
> 
> I've probably got enough to be going on with in the HTML.G file if 
> there's no obvious answer to the JAVA.G.

The C# java.g supplied with the 'java grammar' example in v2.7.3 had
an extra semicolon on line 1627. You can either remove it or upgrade
and use ANTLR v2.7.4

Cheers,

Micheal




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list