Banner


C++ Parser Library




Sven Eric Panitz


A Simple Parser Combinator Library in C++ (DRAFT)

Monadic Parser Combinators stem from functional programming. This paper exploits the ideas of parser combinators and applies them to the C++ programming language. The resulting library is extremely small, flexible and easy to use. The paper contains the complete source code of the resulting parser library. As an example a parser of N. Wirth's language PL/0 is given in terms of the parser library.

Resources