View Source API Reference Minipeg v0.7.3

Modules

Minipeg is a minimal Parse Expression Grammars (PEG) Library

Here is a first taste of how to use it

Wrapping a map

All public functions in this module take a parser and potentially more parameters and return a new parser

Implements (some) basic combinators

Convenience combinators, combining more basic combinators and mappers

Raised if parse errors occur when parsing with bang functions

A failure result

Utility for using with the function form of the debug combinator.

An ignored success result

An input wrapper

Define some useful functions for Minipeg.Combinators.map

A struct containung a parser function and a name

A collection of basic parsers

Basic parsers which would be sufficient to write any parser but are of course completed by many more convenience parsers

Some commonly useful parsers

Parses s-expressions (lispy) The syntax is very simple

RgxParsers are useful if they are constructed carefully

A success result