unplugged-system/external/antlr/runtime/ObjC/Framework/examples/treeparser
2025-10-06 13:59:42 +00:00
..
files Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Lang.g Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Lang.tokens Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangDumpDecl.g Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangDumpDecl.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangDumpDecl.m Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangDumpDecl.tokens Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangLexer.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangLexer.m Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangParser.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
LangParser.m Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Main.java Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
main.m Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
output Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.txt Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

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