antlr/runtime/Cpp/demo
Mike Lischke 9e30f3f265 A few minor changes related to building via cmake. 2016-05-23 09:40:48 +02:00
..
Linux Added cmake target (Linux + OSX) + fixed a number of warnings. 2016-05-06 16:48:59 +02:00
Mac Rework of the include structure. 2016-05-15 18:37:56 +02:00
Windows Fixed demo compilation for Visual Studio 2013. 2016-05-19 17:33:25 +02:00
CMakeLists.txt Runtime Cpp: disable warnings and remove unnecessary files 2016-05-09 15:24:03 +02:00
README.md A few minor changes related to building via cmake. 2016-05-23 09:40:48 +02:00
TLexer.g4 Further work to have full Unicode support. 2016-05-14 15:57:37 +02:00
TParser.g4 Further work to have full Unicode support. 2016-05-14 15:57:37 +02:00
generate.cmd Updated Windows project to be compilable as both static and dynamic lib. 2016-05-04 19:04:33 +02: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.