Andrew Sapperstein | d6eaacb | 2011-05-20 13:14:56 -0700 | [diff] [blame] | 1 | The JavaParser and JavaLexer classes were built using ANTLR. |
| 2 | To regenerate these classes, download the ANTLR java binaries |
| 3 | JAR file from http://www.antlr.org/download.html. |
| 4 | Then run that JAR from the command line |
| 5 | ("How do I use ANTLR v3 from the command line" - |
| 6 | http://www.antlr.org/wiki/pages/viewpage.action?pageId=729) |
| 7 | using 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 | |
| 10 | When this step was last done, there were some extra files generated, |
| 11 | these were ignored and discarded. For use, see the Parse Trees link |
| 12 | above for a basic example. |
Andrew Sapperstein | 6ba612e | 2011-06-20 18:41:24 -0700 | [diff] [blame] | 13 | |
| 14 | Steps: |
| 15 | java -Xmx1G -jar ~/Downloads/antlr-3.3-complete.jar -debug src/com/google/doclava/parser/Java.g |