antlr/runtime/Cpp/demo
gendalph 886e6b0ed2 CMake build fixes for Visual Studio
Remove unsupported cmd line options (gcc).
Disable warning for DLL.
2017-10-30 22:56:57 +03:00
..
Linux tweak documentation about various targets 2017-03-30 10:44:28 -07:00
Mac Consequently use static_cast for (s)size_t casts. 2017-07-19 10:43:36 +02:00
Windows tweak documentation about various targets 2017-03-30 10:44:28 -07:00
CMakeLists.txt CMake build fixes for Visual Studio 2017-10-30 22:56:57 +03:00
README.md All C++ runtime tests pass now. 2016-06-04 12:11:38 +02:00
TLexer.g4 Using new Unicode syntax for C++ demo project. 2017-02-28 15:32:25 +01:00
TParser.g4 Reworked mutex handling + updated C++ template for a var init 2016-10-29 14:46:38 +02:00
generate.cmd rename 4.6.1 to 4.7 everywhere 2017-02-23 14:48:58 -08:00
generate.sh Updated Windows project to be compilable as both static and dynamic lib. 2016-05-04 19:04:33 +02:00

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.