blob: 310515dec0b9f1b04cd9edd5ed3cdd4f956360c5 [file] [log] [blame]
Andrew Sappersteind6eaacb2011-05-20 13:14:56 -07001The JavaParser and JavaLexer classes were built using ANTLR.
2To regenerate these classes, download the ANTLR java binaries
3JAR file from http://www.antlr.org/download.html.
4Then run that JAR from the command line
5("How do I use ANTLR v3 from the command line" -
6http://www.antlr.org/wiki/pages/viewpage.action?pageId=729)
7using the -debug flag so that a parse tree is generated
8(see "How can I build parse trees not ASTs" on the ANTLR FAQ - http://www.antlr.org/wiki/pages/viewpage.action?pageId=1760).
9
10When this step was last done, there were some extra files generated,
11these were ignored and discarded. For use, see the Parse Trees link
12above for a basic example.
Andrew Sapperstein6ba612e2011-06-20 18:41:24 -070013
14Steps:
15java -Xmx1G -jar ~/Downloads/antlr-3.3-complete.jar -debug src/com/google/doclava/parser/Java.g