Global Information Lookup Global Information

Parser combinator information


In computer programming, a parser combinator is a higher-order function that accepts several parsers as input and returns a new parser as its output. In this context, a parser is a function accepting strings as input and returning some structure as output, typically a parse tree or a set of indices representing locations in the string where parsing stopped successfully. Parser combinators enable a recursive descent parsing strategy that facilitates modular piecewise construction and testing. This parsing technique is called combinatory parsing.

Parsers using combinators have been used extensively in the prototyping of compilers and processors for domain-specific languages such as natural-language interfaces to databases, where complex and varied semantic actions are closely integrated with syntactic processing. In 1989, Richard Frost and John Launchbury demonstrated[1] use of parser combinators to construct natural-language interpreters. Graham Hutton also used higher-order functions for basic parsing in 1992[2] and monadic parsing in 1996.[3] S. D. Swierstra also exhibited the practical aspects of parser combinators in 2001.[4] In 2008, Frost, Hafiz and Callaghan[5] described a set of parser combinators in Haskell that solve the long-standing problem of accommodating left recursion, and work as a complete top-down parsing tool in polynomial time and space.

  1. ^ Frost & Launchbury 1989.
  2. ^ Hutton 1992.
  3. ^ Hutton, Graham; Meijer, Erik. "Monadic Parser Combinators" (PDF). University of Nottingham. Retrieved 13 February 2023. {{cite journal}}: Cite journal requires |journal= (help)
  4. ^ Swierstra 2001.
  5. ^ Frost, Hafiz & Callaghan 2008.

and 20 Related for: Parser combinator information

Request time (Page generated in 0.7895 seconds.)

Parser combinator

Last Update:

parser combinator is a higher-order function that accepts several parsers as input and returns a new parser as its output. In this context, a parser is...

Word Count : 1730

Parsing expression grammar

Last Update:

Regular expression Top-down parsing language Comparison of parser generators Parser combinator Ford, Bryan (January 2004). "Parsing Expression Grammars: A...

Word Count : 6426

Recursive descent parser

Last Update:

In computer science, a recursive descent parser is a kind of top-down parser built from a set of mutually recursive procedures (or a non-recursive equivalent)...

Word Count : 1119

Memoization

Last Update:

processor. Frost showed that basic memoized parser combinators can be used as building blocks to construct complex parsers as executable specifications of CFGs...

Word Count : 3744

Parsing

Last Update:

parser LALR (look-ahead LR) parser Operator-precedence parser SLR (Simple LR) parser Simple precedence parser Packrat parser: a linear time parsing algorithm...

Word Count : 4857

List of Y Combinator startups

Last Update:

notable startups have completed the Y Combinator Accelerator program. Mike Isaac described Y Combinator as: "Y Combinator accepts batches of start-ups twice...

Word Count : 356

Comparison of parser generators

Last Update:

2023-11-30. "The Lezer Parser System". "Building a ShopifyQL Code Editor". Shopify. Retrieved 2023-12-06. "Sponsoring the Lezer parser system | Tines". www...

Word Count : 1106

Left recursion

Last Update:

grammar that contains left recursion cannot be parsed by a LL(k)-parser or other naive recursive descent parser unless it is converted to a weakly equivalent...

Word Count : 2310

Packrat parser

Last Update:

The Packrat parser is a type of parser that shares similarities with the recursive descent parser in its construction. However, it differs because it...

Word Count : 1860

Combinator library

Last Update:

Haskell" Daan Leijen & Erik Meijer (2001). Parsec: Direct Style Monadic Parser Combinators for the Real World. Department of Computer Science, Universiteit Utrecht...

Word Count : 218

Language Integrated Query

Last Update:

mismatch List comprehension Lazy evaluation "Rx framework". "Monadic Parser Combinators using C#3". Retrieved 2009-11-21. "Standard Query Operators". Microsoft...

Word Count : 3302

Tikhon Bernstam

Last Update:

attended the Y Combinator program in 2006, launching Scribd. He went on to attend the Y Combinator program again in 2011, this time co-founding Parse, a platform...

Word Count : 522

Combinatory categorial grammar

Last Update:

non-interdefinable combinators. Jacobson interprets personal pronouns as the combinator I, and their binding is aided by a complex combinator Z, as in "Mary...

Word Count : 1333

Jared Friedman

Last Update:

is an American entrepreneur and angel investor. He is a partner at Y Combinator in San Francisco, where he invests in and helps startups. Previously,...

Word Count : 830

HaXml

Last Update:

parser XML validator a separate error-correcting parser for HTML pretty-printers for XML and HTML stream parser for XML events translator from DTD to Haskell...

Word Count : 479

Binary combinatory logic

Last Update:

combinatory logic using only the symbols 0 and 1. Using the S and K combinators, complex boolean algebra functions can be made. BCL has applications...

Word Count : 413

Recursion

Last Update:

awakening – Vivid and convincing dream about awakening from sleep Fixed point combinator – Higher-order function Y for which Y f = f (Y f)Pages displaying short...

Word Count : 3644

Iteratee

Last Update:

primitives and combinators than iteratees; conduit adapters for incremental functionalities such as parsing HTML, XML, generalised parsing, making HTTP...

Word Count : 1246

CSS

Last Update:

used for pseudo-classes. Multiple simple selectors may be joined using combinators to specify elements by location, element type, id, class, or any combination...

Word Count : 7855

Haskell features

Last Update:

that if the parser encounters a parse error during processing of a layout section, then it should try inserting a close brace (the "parse error" rule)...

Word Count : 3537

PDF Search Engine © AllGlobal.net