The goal of this lab is to learn to have antlr generate code and invoke it from Java. At this point, all we have done is used the ANTLR interpreter from within intellij.
- Create an intellij project; call it whatever you want.
- To make this project work, we need to download the antlr-4.6-complete.jar. I suggest storing it in
/usr/local/lib
if you are on a Mac or on UNIX. On a Windows machine, you can simply store it in the root directory of your project. Now, tell intellij to include that as a dependency.
`(declaration (typename int) (declarator * (declarator i)) ;)` 1. Enter code to open a dialog box showing the tree visually using `Trees.inspect(Tree, parser)`. Running should produce this dialog box: