A ready to use starter project using ANTLR, Cmake and Emscripten.
There are no dependencies. The script /tools/antlr/download_and_patch.sh
will
download ANTLR and it will be used as a CMake dependency.
# Download ANTLR.
cd tools/antlr
./download_and_patch.sh
cd ../..
# Build the project
mkdir build
cd build
CC=emcc CXX=em++ cmake ..
make main.js
./src/main
# Test the demo
cd src
./run_web_server.sh
navigate to http://localhost:8080