APG – an ABNF Parser Generator – generates parsers directly from a superset of ABNF. A detailed description of ABNF and the superset (SABNF) is given here
Python APG can be installed from either GitHub or PyPI. The PyPI installation will provide the generator and parsing library. However, the GitHub installation additionally provides an extensive set of examples, a large set of tests and the full documentation.
A quick start parser guide using the GitHub installation can be found here.
A quick start parser guide using the PyPI installation can be found here.
The full documentation is in the code and in additional documentation files.
It can be generated
with doxygen
from the GitHub installation. For example, using the GitHub zip download
and the Ubuntu Linux command line:
unzip apg-py-main.zip
cd apg-py-main
sudo apt install graphviz
sudo apt install doxygen
doxygen
The documentation home page will now be found in html/index.html
.
Or you can view it directly from the
APG website.