android13/external/antlr/runtime/ObjC/Framework/examples/treeparser
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
Lang.g initial 2024-06-22 20:45:49 +08:00
Lang.tokens initial 2024-06-22 20:45:49 +08:00
LangDumpDecl.g initial 2024-06-22 20:45:49 +08:00
LangDumpDecl.h initial 2024-06-22 20:45:49 +08:00
LangDumpDecl.m initial 2024-06-22 20:45:49 +08:00
LangDumpDecl.tokens initial 2024-06-22 20:45:49 +08:00
LangLexer.h initial 2024-06-22 20:45:49 +08:00
LangLexer.m initial 2024-06-22 20:45:49 +08:00
LangParser.h initial 2024-06-22 20:45:49 +08:00
LangParser.m initial 2024-06-22 20:45:49 +08:00
Main.java initial 2024-06-22 20:45:49 +08:00
README.txt initial 2024-06-22 20:45:49 +08:00
files initial 2024-06-22 20:45:49 +08:00
input initial 2024-06-22 20:45:49 +08:00
main.m initial 2024-06-22 20:45:49 +08:00
output initial 2024-06-22 20:45:49 +08:00

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