Parsec is an industrial-strength, monadic parser combinator library for Haskell.
Parsec is an industrial strength, monadic parser combinator library for Haskell. Parsec lets you construct parsers by combining higher-order Combinators to create larger expressions. Combinator parsers are written and used within the same programming language as the rest of the program. The parsers are first-class citizens of the language , unlike Happy parsers, which must be generated via a preprocessor.
More information about Parsec, including usage examples, can be found on the Parsec website.