Parser generator to generate an LALR parser with C++
-
CMake >= 3.16
-
C++ compiler with C++20 standard library
- Run CMake
mkdir build && cd build && cmake ..
- Run Make
make -j4
- Run CMake
mkdir build && cd build && cmake ..
- Run Make
make docs
The generated document will under build/docs/html
pargen [-h | --help] [-v | --version ] [-n | --namespace ]? [-d | --debug ] [--dump_tree ] [-I? | --includes ?]... pxml_file
- pxml_file : Path of the main PXML file
-
--help, -h : Show usage and additional help messages.
-
--version, -v : Print version information.
-
--namespace, -n : Override namespace of generated objects.
-
--debug, -d : Open Debug mode, dump grammar, term enumeration, lexer states and parser states
-
--dump_tree : Dump parse tree at runtime
-
--includes, -I : Add directory for searching included PXML files