kirancodes.me
To Proof Maintenance & Beyond!

Design patterns for parser combinators (functional pearl)

Jamie Willis, Nicolas Wu

Abstract

Parser combinators are a popular and elegant approach for parsing in functional languages. The design and implementation of such libraries are well discussed, but having a well-designed library is only one-half of the story. In this paper we explore several reusable approaches to writing parsers in combinator style, focusing on easy to apply patterns to keep parsing code simple, separated, and maintainable.

Related papers