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