Skip to content

joelburget/typed-algebraic-parsing

Repository files navigation

An implementation of two papers of Krishnaswami and Yallop.

  1. A Typed, Algebraic Approach to Parsing
  • This shows how to define parser combinators that can be typechecked to ensure they run in linear time with no backtracking and single token lookahead.
  1. Fusing Lexing and Parsing
  • This shows how to fuse lexers and parsers defined in the above style. This avoids the need for tokens to be allocated, so the result is several times faster than standard approaches.

Both papers explicitly support staging (ie code generation), for performance.

About

An implementation of "A Typed, Algebraic Approach to Parsing"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages