Zapp is a packrat parser generator, that is written in Zig and generates code written in zig.
The documentation is here:
- the grammar format is described here
- using actions in the grammar is explained here
- informations about using zapp here
- the interface of the generated parsers is explained here
There is currently no prepackaged binaries, so the project has to be built from source.
- zig >= 0.14.0
First the repository has to be cloned:
git clone https://github.com/PiIsRational/zapp
got to the directory of the project and execute to build it:
zig build -Doptimize=ReleaseSafe
the binary will be: ./zig-out/bin/zapp
the main license of Zapp is the GPLv3, but since the parsers generated by Zapp contain code from Zapp, this code is licensed under an MIT license. Because of this the parsers generated by Zapp are under the MIT License.