• Home
Name Date Size #Lines LOC

..--

Lang.gD06-Sep-2024394 2318

Lang.tokensD06-Sep-202461 98

LangDumpDecl.gD06-Sep-2024289 1814

LangDumpDecl.hD06-Sep-20242.3 KiB9142

LangDumpDecl.mD06-Sep-20248 KiB262189

LangDumpDecl.tokensD06-Sep-202461 98

LangLexer.hD06-Sep-20241.2 KiB4728

LangLexer.mD06-Sep-202413.6 KiB556432

LangParser.hD06-Sep-20244.5 KiB15868

LangParser.mD06-Sep-202414.4 KiB504383

Main.javaD06-Sep-2024694 2117

README.txtD06-Sep-2024240 128

filesD06-Sep-202456 76

inputD06-Sep-20247 21

main.mD06-Sep-20241.9 KiB5549

outputD06-Sep-202425 32

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