antlr/runtime/Cpp/demo
Mike Lischke eee86d8292 Small updates for VS 2013/2015.
Updated the demo project to also use static/dynamic libs like the runtime and fixed a few warnings in the Any class.
2016-07-31 13:28:01 +02:00
..
Linux A fix for the Linux demo project. 2016-06-17 15:54:21 +02:00
Mac Changes for deployment. 2016-06-19 15:31:09 +02:00
Windows Small updates for VS 2013/2015. 2016-07-31 13:28:01 +02: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 Actually use a channel in the demo grammar. 2016-07-20 15:22:09 +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.