[antlr-interest] Re: How to use antlr
Ric Klaren
klaren at cs.utwente.nl
Thu Jun 17 06:16:43 PDT 2004
On Thu, Jun 17, 2004 at 01:04:22PM -0000, jay_ayliff 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.
It might help to use the version of java.g and friends in the examples of
2.7.4 I think that should be the most current version. (Actually this is
not an error I'd expect from java.g)
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755 ----
-----+++++*****************************************************+++++++++-------
Chaos often breeds life, when order breeds habit.
--- Henry B. Adams, The Education of Henry Adams
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