mirror of
https://github.com/ArthurSonzogni/Diagon.git
synced 2026-08-29 16:40:45 +08:00
9031b4048c5bf298ae3e4a6face8e0f5e2d92ca3
ANTLR Cmake Starter
Description
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.
Demo
Instructions
# 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
Languages
C++
82.4%
HTML
6%
CMake
5.4%
CSS
3.5%
ANTLR
2.3%
Other
0.4%