|
|
||
|---|---|---|
| .. | ||
| Lang.g | ||
| Lang.tokens | ||
| LangDumpDecl.g | ||
| LangDumpDecl.h | ||
| LangDumpDecl.m | ||
| LangDumpDecl.tokens | ||
| LangLexer.h | ||
| LangLexer.m | ||
| LangParser.h | ||
| LangParser.m | ||
| Main.java | ||
| README.txt | ||
| files | ||
| input | ||
| main.m | ||
| output | ||
README.txt
Hi. This is a simple demo of tree construction and tree parsing with ANTLR v3. Here's how to try it out. $ java org.antlr.Tool LangParser.g LangTreeParser.g $ javac *.java $ java Main input You should see out: tree: (DECL int a) int a