Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
Lang.g | D | 22-Nov-2023 | 399 | 23 | 18 | |
Lang.tokens | D | 22-Nov-2023 | 61 | 9 | 8 | |
LangDumpDecl.g | D | 22-Nov-2023 | 294 | 18 | 14 | |
LangDumpDecl.h | D | 22-Nov-2023 | 2.2 KiB | 90 | 40 | |
LangDumpDecl.m | D | 22-Nov-2023 | 7.1 KiB | 259 | 193 | |
LangDumpDecl.tokens | D | 22-Nov-2023 | 61 | 9 | 8 | |
LangLexer.h | D | 22-Nov-2023 | 1.1 KiB | 47 | 28 | |
LangLexer.m | D | 22-Nov-2023 | 11.4 KiB | 532 | 432 | |
LangParser.h | D | 22-Nov-2023 | 4.4 KiB | 150 | 66 | |
LangParser.m | D | 22-Nov-2023 | 13.7 KiB | 516 | 388 | |
Main.java | D | 22-Nov-2023 | 694 | 21 | 17 | |
README.txt | D | 22-Nov-2023 | 240 | 12 | 8 | |
files | D | 22-Nov-2023 | 56 | 7 | 6 | |
input | D | 22-Nov-2023 | 7 | 2 | 1 | |
main.m | D | 22-Nov-2023 | 2 KiB | 55 | 49 | |
output | D | 22-Nov-2023 | 25 | 3 | 2 |
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