[antlr-interest] parser.prog()
Jonathan Thomas
jonathan.thomas at ca.com
Thu Jun 21 19:16:13 PDT 2007
Do you have a top-level rule in your grammar called 'prog' ?
The rule names get converted to functions in the parser, which you can
then call from your test program.
Which sample grammar did you try?
JT.
Tak-po Li said the following on 22/06/2007 12:08 PM:
>
> Hi,
>
> I am new to v3.0. I generated xxxLexer.java and xxxParser.jave
> successfully using Antlrworks. I also created test.java as page 50 of
> the Antlr Referance book. However, when I complied, I get the
> following error:
>
> Parser.java xxxLexer.java
> xxx.java:11: connot find symbol
> symbol : method prog()
> location: class xxxParser
> parser.prog();
> ^
> 1 error
>
> Could anyone help? Thanks,
>
> Tak
>
> _________________________________________________________________
> Get a preview of Live Earth, the hottest event this summer - only on
> MSN http://liveearth.msn.com?source=msntaglineliveearthhm
>
>
More information about the antlr-interest
mailing list