C++ runtime for LPG 2.0. This project is a c++ target for LPG2.0
-
On linux ,install boost
$ sudo apt-get install libboost-dev
On Mac,install boost on Mac
$ brew install boost
-
$ git submodule init $ git submodule update
-
Building with
CMake
$ mkdir _build
$ cd _build
$ cmake -DUri_BUILD_TESTS=OFF ..
$ make -j4
- Restore the submodules.
git submodule init git submodule update
- Open cmd or powershell and generate visual studio project with
CMake
.
mkdir _build
cd _build
cmake -DUri_BUILD_TESTS=OFF -DUri_USE_STATIC_CRT=OFF ..
-
"cmake -help" is useful if you are not familiar with cmake.
-
Build it with Visual Studio.
The LALR parser generator (LPG) is a tool for developing scanners and parsers written in JavaScript,TypeScript,Python, C#, Java, C++ or C. Input is specified by BNF rules. LPG supports backtracking (to resolve ambiguity), automatic AST generation and grammar inheritance.