BSD Ports

textproc/PEGTL 2.8.3 NetBSD

C++ header-only parser combinator library

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
textproc
Package size
51.1 KiB, 431.3 KiB installed

Description

The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG).

Grammars are written as regular C++ code, created with template programming (not template meta programming), i.e. nested template instantiations that naturally correspond to the inductive definition of PEGs (and other parser-combinator approaches).

A comprehensive set of parser rules that can be combined and extended by the user is included, as are mechanisms for debugging grammars, and for attaching user-defined actions to grammar rules.

Install

Binary package:

pkgin install PEGTL

From pkgsrc:

cd /usr/pkgsrc/textproc/PEGTL && make install clean

Dependencies

No port depends on this one.