PreviousUpNext

13.4.92  parser_combinator

The standard library parser_combinator package implements parser combinators over readers. These are modeled after the Haskell combinators of Hutton and Meijer.

The main difference is that they return a single result, instead of a list of results. This means that "or" is a committed choice; once one branch succeeds, the others will not be enabled.

While this is somewhat limiting, for many applications it will not be a problem. For more substantial parsing problems, one should use Mythryl-Yacc and/or Mythryl-Lex.

The parser_combinator package implements the Parser_Combinator API.

The parser_combinator package source code is in src/lib/src/parser-combinator.pkg.

The above information is manually maintained and may contain errors.

Parser_Combinator

Comments and suggestions to: bugs@mythryl.org

PreviousUpNext