Jump to content

Combinator library

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 75.179.34.119 (talk) at 23:15, 26 February 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A combinator library is a software library which implements a parser for combinators for a functional programming language; "the key idea is this: a combinator library offers functions (the combinators) that combine functions together to make bigger functions"[1]. These kinds of libaries are particularly useful for allowing domain-specific programming languages to be easily embedded into a general purpose language by defining a few primitive functions for the given domain and turning over the task of expanding higher-level constructs to the general language. An example would be the monadic Parsec parser [1] for Haskell. The library approach allows the parsers to be first-class citizens of the language.

See also

References

  • "Designing and Using Combinators: The Essence of Functional Programming"
  • Daan Leijen and Erik Meijer (2001). "Parsec: Direct Style Monadic Parser Combinators for the Real World". Department of Computer Science, Universiteit Utrecht. UU-CS-2001-27. {{cite book}}: Cite has empty unknown parameter: |1= (help); External link in |title= (help)
  • Daan Leijen and Erik Meijer (1999,). "Domain Specific Embedded Compilers". Austin, Texas. pp. 109–122. {{cite book}}: Check date values in: |year= (help); External link in |title= (help); Unknown parameter |booktitle= ignored (help); Unknown parameter |month= ignored (help); Unknown parameter |other= ignored (|others= suggested) (help)CS1 maint: extra punctuation (link) CS1 maint: year (link)
  • Hughes, John (1995). Jeuring, J. and Meijer, E. (ed.). "The Design of a Pretty-printing Library". Vol. 925. Springer Verlag. {{cite book}}: External link in |title= (help); Unknown parameter |booktitle= ignored (help)CS1 maint: multiple names: editors list (link)