Welcome to DHParser’s documentation!

DHParser is a parser-generator and and domain-specific-languages construction kit, designed for but not restricted to Digital-Humanities-applications.

DHParser offers:

  • EBNF-based grammar-specification language with support for different flavors of EBNF

  • Parsing-Expression-Grammar (PEG)-parser with memoization and full left-recursion support

  • full unicode support

  • unit-testing-framework for grammars

  • post-mortem debugger for generated parsers

  • support for fail-tolerant parsing

  • customizable error messages

  • extensive tree-processing facilities

  • support for building language servers (experimental)

Install DHParser

$ python -m pip install --user DHParser

Resources

Indices and tables