APG - An ABNF Parser Generator
Version 5.1 Description
(Released March 1, 2009)
APG version 5.1 updates versions 5.0 and 5.0.1 in three ways.
- Most significantly, it updates the Linux build procedure to the autotools format.
- It includes project files for the Open Source IDE, Code::Blocks (www.codeblocks.org). Project files for Microsoft's Visual C++ are no longer supported.
- It enhances the ABNF Grammar for the parser generator to accept the single-character line endings LF (\n or 0x0a) or CR (\r or 0x0d) in addition to the RFC 4234 specification CRLF (\r\n or 0x0d0a).
You can download version 5.1 here.
Acknowledgment: Many thanks to Sebastian Pipping for his time and effort creating the autotools build and for suggesting Code::Blocks as an Open Source IDE to work uniformly across Linux and Windows. For more of his work visit (http://www.hartwork.org/)
APG 5.0, 5.0.1 and 5.1 are released under the GNU General Public License, 1991 (www.gnu.org/licenses/gpl-2.0.html). The APG 5.1 files are distributed in four different compression formats:
- apg-5.1.tar.gz
- apg-5.1.zip
- apg-5.1.tar.bz2
- apg-5.1.tar.lzma.
After decompressing and changing to the apg-5.1 directory there are three options for building APG 5.1.
-
On a Linux system execute:
./configure --prefix=/mylib (default is /usr/local)
make
make install
The installation locations will be:
/mydir/bin/apg
/mydir/lib/libapg.a
/mydir/lib/libapgutilities.a
/mydir/include/Apg.h
/mydir/include/ApgUtilities.h
/mylib/bin/apg is the parser generator. The libraries and header files are required to build the generated parsers.
- If Code::Blocks is installed, on either a Linux or Windows system run Code::Blocks and open the file ./apg.workspace. From the "Build" menu select "Build workspace".
- Compile and link all of the source files using your favorite IDE or build environment.