• Home
Name Date Size #Lines LOC

..--

Lang.gD03-May-2024394 2318

Lang.tokensD03-May-202461 98

LangDumpDecl.gD03-May-2024289 1814

LangDumpDecl.hD03-May-20242.3 KiB9142

LangDumpDecl.mD03-May-20248 KiB262189

LangDumpDecl.tokensD03-May-202461 98

LangLexer.hD03-May-20241.2 KiB4728

LangLexer.mD03-May-202413.6 KiB556432

LangParser.hD03-May-20244.5 KiB15868

LangParser.mD03-May-202414.4 KiB504383

Main.javaD03-May-2024694 2117

README.txtD03-May-2024240 128

filesD03-May-202456 76

inputD03-May-20247 21

main.mD03-May-20241.9 KiB5549

outputD03-May-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