Name | Date | Size | |
---|---|---|---|
.. | 14-Feb-2013 | 4 KiB | |
files | 14-Feb-2013 | 56 | |
input | 14-Feb-2013 | 7 | |
Lang.g | 14-Feb-2013 | 399 | |
Lang.tokens | 14-Feb-2013 | 61 | |
LangDumpDecl.g | 14-Feb-2013 | 294 | |
LangDumpDecl.h | 14-Feb-2013 | 2.2 KiB | |
LangDumpDecl.m | 14-Feb-2013 | 7.1 KiB | |
LangDumpDecl.tokens | 14-Feb-2013 | 61 | |
LangLexer.h | 14-Feb-2013 | 1.1 KiB | |
LangLexer.m | 14-Feb-2013 | 11.4 KiB | |
LangParser.h | 14-Feb-2013 | 4.4 KiB | |
LangParser.m | 14-Feb-2013 | 13.7 KiB | |
Main.java | 14-Feb-2013 | 694 | |
main.m | 14-Feb-2013 | 2 KiB | |
output | 14-Feb-2013 | 25 | |
README.txt | 14-Feb-2013 | 240 |
README.txt
1Hi. This is a simple demo of tree construction and tree parsing with ANTLR 2v3. Here's how to try it out. 3 4$ java org.antlr.Tool LangParser.g LangTreeParser.g 5$ javac *.java 6$ java Main input 7 8You should see out: 9 10tree: (DECL int a) 11int a 12