[antlr-interest] Need Help - Not able to use Java1.5 grammaravailable on site with ANTLRv3

Amol Neurgaonkar amol.neurgaonkar at gmail.com
Fri Jun 22 13:56:04 PDT 2007


>
> Hi,
>
> The grammar is working fine now when I save the URL link for grammar
> directly on the machine.
> Earlier I was copying the grammar from the browser itself and also tried
> by saving
> the browser file using File-Save As. Both of these options seem to embed
> some format
> chars which corrupted the grammar.
>
> Now I am able to generate the Java classes based on the grammar file.
> The files generated are -
>
> Java.Tokens,
> Java_.g,
> JavaLexer.java,
> JavaParser.java
>
> Earlier the ANTLR 2.7.5 version used to generate a <JavaRecognizer.java>
> class. Is the <JavaParser.java> code same as the JavaRecognizer class in
> terms of the functionality ?
>
> Similarly, earlier the code generated a JavaTokenTypes.java class while
> now only Java.Tokens file
> is generated.
>
> I was using the ANTLR generated JavaRecognizer.java class to extract
> methods out of a java class given as input for my tool, so just wanted to
> know if the usage still remains the same except that the Parser replaces the
> Recognizer now ?
>
> Also,I would like to thank everyone who provided the support and help and
> also to the ANTLR team for building such a cool software !
>
> Thanks,
> Amol.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070622/951e9c7a/attachment.html 


More information about the antlr-interest mailing list