antlr/runtime/Cpp/demo
Mike Lischke ec665c1b90 A small fix in the C++ documentation. 2019-01-03 10:39:59 +01:00
..
Linux tweak documentation about various targets 2017-03-30 10:44:28 -07:00
Mac A small fix in the C++ documentation. 2019-01-03 10:39:59 +01:00
Windows remove double dots in the filename 2018-08-03 16:16:04 +07:00
CMakeLists.txt Parenthetical spacing in CMake files is more consistent 2018-10-30 12:48:58 -04: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 manual edits of 4.7.1 -> 4.7.2 2018-12-17 14:32:39 -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.