On this page:
Parser Combinator
9.3

Parser Combinator🔗

Nathan Lilienthal

This package provides a small library of parser combinators: functions that consume parsers and produce new parsers. Each parser is a Racket function from a string to a result, so a grammar is written as a collection of plain definitions, one per non-terminal.

The package comes with two libraries:

    1 Quick Start

    2 Parsers and Combinators

      2.1 Data Definitions

      2.2 Defining Parsers

      2.3 Primitive Parsers

      2.4 Combinators

      2.5 Run Parsers

    3 JSON

      3.1 JSON Values

      3.2 Grammar