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

..--

Lang.gD22-Nov-2023399 2318

Lang.tokensD22-Nov-202361 98

LangDumpDecl.gD22-Nov-2023294 1814

LangDumpDecl.hD22-Nov-20232.2 KiB9040

LangDumpDecl.mD22-Nov-20237.1 KiB259193

LangDumpDecl.tokensD22-Nov-202361 98

LangLexer.hD22-Nov-20231.1 KiB4728

LangLexer.mD22-Nov-202311.4 KiB532432

LangParser.hD22-Nov-20234.4 KiB15066

LangParser.mD22-Nov-202313.7 KiB516388

Main.javaD22-Nov-2023694 2117

README.txtD22-Nov-2023240 128

filesD22-Nov-202356 76

inputD22-Nov-20237 21

main.mD22-Nov-20232 KiB5549

outputD22-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