forked from ph7n2ofui/SysyCompiler_Arm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| Linux | 3 years ago | |
| Mac | 3 years ago | |
| Windows | 3 years ago | |
| CMakeLists.txt | 3 years ago | |
| README.md | 3 years ago | |
| TLexer.g4 | 3 years ago | |
| TParser.g4 | 3 years ago | |
| generate.cmd | 3 years ago | |
| generate.sh | 3 years ago | |
README.md
Demo application for the ANTLR 4 C++ target
This demo app shows how to build the ANTLR runtime both as dynamic and static library and how to use a parser generated from a simple demo grammar.
A few steps are necessary to get this to work:
- Download the current ANTLR jar and place it in this folder.
- Open the generation script for your platform (generate.cmd for Windows, generate.sh for *nix/OSX) and update the LOCATION var to the actual name of the jar you downloaded.
- Run the generation script. This will generate a test parser + lexer, along with listener + visitor classes in a subfolder named "generated". This is where the demo application looks for these files.
- Open the project in the folder that matches your system.
- Compile and run.
Compilation is done as described in the runtime/cpp/readme.md file.