Parsec (parser)
Parsec is a library for writing parsers in Haskell. It is based on higher-order parser combinators, so a complicated parser can be made out of many smaller ones.[1] It has been reimplemented in many other languages, including Erlang, OCaml, F# and C#, as well as imperative languages such as Java.[2][3][4][5][6]
Because a parser combinator-based program is generally slower than a parser generator-based program, Parsec is normally used for small domain-specific languages, while Happy is used for compilers such as GHC.[7]
References
- ↑ "Parsec: Direct Style Monadic Parser Combinators For The Real World" (PDF). Retrieved 22 November 2014.
- ↑ "Parsec Erlang". Retrieved 23 November 2014.
- ↑ "Parsec OCaml" (PDF). Retrieved 23 November 2014.
- ↑ "XParsec by corsis". Retrieved 23 November 2014.
- ↑ "CSharp monad". Retrieved 10 December 2014.
- ↑ "JParsec". Retrieved 14 October 2016.
- ↑ "The Glasgow Haskell Compiler (AOSA Vol. 2)". Retrieved 23 November 2014.
External links
This article is issued from Wikipedia - version of the 10/14/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.