请输入您要查询的百科知识:

 

词条 Combinator library
释义

  1. See also

  2. References

  3. External links

{{Expert needed|Programming languages|talk=Vague|date=November 2008}}

A combinator library is a software library which implements 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 libraries 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   for Haskell. The library approach allows the parsers to be first-class citizens of the language.

See also

  • Run-time system
  • QuickCheck
  • Pointless programming

References

1. ^pg 35 of "History of Haskell"

External links

  • {{cite book

|author1=Daan Leijen |author2=Erik Meijer
|lastauthoramp=yes |title = Parsec: Direct Style Monadic Parser Combinators for the Real World
|url = http://dspace.library.uu.nl/handle/1874/2535
|institution = Department of Computer Science, Universiteit Utrecht
|id = UU-CS-2001-27
|year = 2001
}}
  • {{cite book

|author1=Daan Leijen |author2=Erik Meijer
|lastauthoramp=yes |title = Domain Specific Embedded Compilers
|url = https://www.usenix.org/legacy/events/dsl99/full_papers/leijen/leijen.pdf
|booktitle = 2nd USENIX Conference on Domain Specific Languages (DSL'99)
|location = Austin, Texas
|date=October 1999
|pages = 109–122
}}
  • {{cite book

|author = Hughes, John
|title = The Design of a Pretty-printing Library
|url = http://citeseer.ist.psu.edu/hughes95design.html
|booktitle = Advanced Functional Programming
|volume = 925
|publisher = Springer Verlag
|editor1=Jeuring, J. |editor2=Meijer, E. |year = 1995
}}{{DEFAULTSORT:Combinator Library}}{{compu-library-stub}}

1 : Application programming interfaces

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/30 12:39:07