• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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