antlr/runtime/Cpp/demo
parrt 2629433830 bump version to 4.6.1 in all files. 2016-12-28 12:03:43 -08:00
..
Linux Fix compilation error 2016-12-09 16:09:30 +01:00
Mac make it read "Copyright (c) 2012-2016 The ANTLR Project" 2016-12-08 11:43:06 -08:00
Windows Unicode debug output works in VS 2015 intermediate window. 2016-12-13 13:52:30 +01:00
CMakeLists.txt Updated CMake for demo to: 2016-07-24 21:58:45 +02:00
README.md All C++ runtime tests pass now. 2016-06-04 12:11:38 +02:00
TLexer.g4 Fix conflict lexer command in CppTarget demo 2016-12-09 17:32:28 +01:00
TParser.g4 Reworked mutex handling + updated C++ template for a var init 2016-10-29 14:46:38 +02:00
generate.cmd bump version to 4.6.1 in all files. 2016-12-28 12:03:43 -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.