• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

Lang.gD23-Nov-2023394 2318

Lang.tokensD23-Nov-202361 98

LangDumpDecl.gD23-Nov-2023289 1814

LangDumpDecl.hD23-Nov-20232.3 KiB9142

LangDumpDecl.mD23-Nov-20238 KiB262189

LangDumpDecl.tokensD23-Nov-202361 98

LangLexer.hD23-Nov-20231.2 KiB4728

LangLexer.mD23-Nov-202313.6 KiB556432

LangParser.hD23-Nov-20234.5 KiB15868

LangParser.mD23-Nov-202314.4 KiB504383

Main.javaD23-Nov-2023694 2117

README.txtD23-Nov-2023240 128

filesD23-Nov-202356 76

inputD23-Nov-20237 21

main.mD23-Nov-20231.9 KiB5549

outputD23-Nov-202325 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