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.
Su Xing 803f174587
Migrate ANTLR from 4.9.3 to 4.12.0
3 years ago
..
Linux Code skeleton for the SysY compiler 3 years ago
Mac Migrate ANTLR from 4.9.3 to 4.12.0 3 years ago
Windows Migrate ANTLR from 4.9.3 to 4.12.0 3 years ago
CMakeLists.txt Code skeleton for the SysY compiler 3 years ago
README.md Code skeleton for the SysY compiler 3 years ago
TLexer.g4 Code skeleton for the SysY compiler 3 years ago
TParser.g4 Code skeleton for the SysY compiler 3 years ago
generate.cmd Migrate ANTLR from 4.9.3 to 4.12.0 3 years ago
generate.sh Code skeleton for the SysY compiler 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.