abouttreesummaryrefslogcommitdiff
path: root/antlr4-cpp-runtime-4.9.2-source/demo/README.md
diff options
context:
space:
mode:
authorPatrick Schönberger2021-08-14 14:56:12 +0200
committerPatrick Schönberger2021-08-14 14:56:12 +0200
commitc6ad2948bb98d42f8e0883ef82cd14cd2d5eda60 (patch)
tree9e83d6d8f61e56f5d3425b8709314d6bdb9315a9 /antlr4-cpp-runtime-4.9.2-source/demo/README.md
parent9f94b672a5dc32da5ad01742bd4e976315a30d9c (diff)
downloadtoc-main.tar.gz
toc-main.zip
add antlr source code and ReadMeHEADmain
Diffstat (limited to 'antlr4-cpp-runtime-4.9.2-source/demo/README.md')
-rw-r--r--antlr4-cpp-runtime-4.9.2-source/demo/README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/antlr4-cpp-runtime-4.9.2-source/demo/README.md b/antlr4-cpp-runtime-4.9.2-source/demo/README.md
new file mode 100644
index 0000000..73f03a4
--- /dev/null
+++ b/antlr4-cpp-runtime-4.9.2-source/demo/README.md
@@ -0,0 +1,13 @@
+## 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](../README.md) file.