Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
Lang.g | D | 23-Nov-2023 | 394 | 23 | 18 | |
Lang.tokens | D | 23-Nov-2023 | 61 | 9 | 8 | |
LangDumpDecl.g | D | 23-Nov-2023 | 289 | 18 | 14 | |
LangDumpDecl.h | D | 23-Nov-2023 | 2.3 KiB | 91 | 42 | |
LangDumpDecl.m | D | 23-Nov-2023 | 8 KiB | 262 | 189 | |
LangDumpDecl.tokens | D | 23-Nov-2023 | 61 | 9 | 8 | |
LangLexer.h | D | 23-Nov-2023 | 1.2 KiB | 47 | 28 | |
LangLexer.m | D | 23-Nov-2023 | 13.6 KiB | 556 | 432 | |
LangParser.h | D | 23-Nov-2023 | 4.5 KiB | 158 | 68 | |
LangParser.m | D | 23-Nov-2023 | 14.4 KiB | 504 | 383 | |
Main.java | D | 23-Nov-2023 | 694 | 21 | 17 | |
README.txt | D | 23-Nov-2023 | 240 | 12 | 8 | |
files | D | 23-Nov-2023 | 56 | 7 | 6 | |
input | D | 23-Nov-2023 | 7 | 2 | 1 | |
main.m | D | 23-Nov-2023 | 1.9 KiB | 55 | 49 | |
output | D | 23-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