Global Information Lookup Global Information

Earley parser information


Earley parser
ClassParsing grammars that are context-free
Data structureString
Worst-case performance
Best-case performance
  • for all deterministic context-free grammars
  • for unambiguous grammars
Average performance

In computer science, the Earley parser is an algorithm for parsing strings that belong to a given context-free language, though (depending on the variant) it may suffer problems with certain nullable grammars.[1] The algorithm, named after its inventor, Jay Earley, is a chart parser that uses dynamic programming; it is mainly used for parsing in computational linguistics. It was first introduced in his dissertation[2] in 1968 (and later appeared in an abbreviated, more legible, form in a journal[3]).

Earley parsers are appealing because they can parse all context-free languages, unlike LR parsers and LL parsers, which are more typically used in compilers but which can only handle restricted classes of languages. The Earley parser executes in cubic time in the general case , where n is the length of the parsed string, quadratic time for unambiguous grammars ,[4] and linear time for all deterministic context-free grammars. It performs particularly well when the rules are written left-recursively.

  1. ^ Kegler, Jeffrey. "What is the Marpa algorithm?". Retrieved 20 August 2013.
  2. ^ Earley, Jay (1968). An Efficient Context-Free Parsing Algorithm (PDF). Carnegie-Mellon Dissertation. Archived from the original (PDF) on 2017-09-22. Retrieved 2012-09-12.
  3. ^ Earley, Jay (1970), "An efficient context-free parsing algorithm" (PDF), Communications of the ACM, 13 (2): 94–102, doi:10.1145/362007.362035, S2CID 47032707, archived from the original (PDF) on 2004-07-08
  4. ^ John E. Hopcroft and Jeffrey D. Ullman (1979). Introduction to Automata Theory, Languages, and Computation. Reading/MA: Addison-Wesley. ISBN 978-0-201-02988-8. p.145

and 21 Related for: Earley parser information

Request time (Page generated in 1.4548 seconds.)

Earley parser

Last Update:

In computer science, the Earley parser is an algorithm for parsing strings that belong to a given context-free language, though (depending on the variant)...

Word Count : 1997

GLR parser

Last Update:

A GLR parser (generalized left-to-right rightmost derivation parser) is an extension of an LR parser algorithm to handle non-deterministic and ambiguous...

Word Count : 850

History of compiler construction

Last Update:

possible. In 1970, Jay Earley invented what came to be known as the Earley parser. Earley parsers are appealing because they can parse all context-free languages...

Word Count : 6356

Chart parser

Last Update:

In computer science, a chart parser is a type of parser suitable for ambiguous grammars (including grammars of natural languages). It uses the dynamic...

Word Count : 267

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

LR parser

Last Update:

ahead of the parser. The lookahead symbols are the 'right-hand context' for the parsing decision. Like other shift-reduce parsers, an LR parser lazily waits...

Word Count : 8128

CYK algorithm

Last Update:

to a constant-size grammar. GLR parser Earley parser Packrat parser Inside–outside algorithm Grune, Dick (2008). Parsing techniques : a practical guide...

Word Count : 2179

Jay Earley

Last Update:

Jay Earley is an American computer scientist and psychologist. He invented the Earley parser in his early career in computer science. Later he became a...

Word Count : 133

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

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

Memoization

Last Update:

Norvig increased the power of the parser through memoization, the augmented parser was still as time complex as Earley's algorithm, which demonstrates a...

Word Count : 3744

Brzozowski derivative

Last Update:

have cubic time complexity, corresponding to the complexity of the Earley parser on general context-free grammars. Quotient of a formal language George...

Word Count : 1362

Tabled logic programming

Last Update:

processing, where it was called Earley parsing. It consists of storing in a table (a.k.a. chart in the context of parsing) partial successful analyses that...

Word Count : 559

SPPF

Last Update:

producteurs de phonogrammes en France; see SourceForge Shared Packed Parse Forest, see Earley parser This disambiguation page lists articles associated with the...

Word Count : 60

List of algorithms

Last Update:

for parsing context-free grammars in Chomsky normal form Earley parser: another O(n3) algorithm for parsing any context-free grammar GLR parser: an algorithm...

Word Count : 7843

Marpa

Last Update:

Association Mini-automatic radar plotting aid Earley parser, one variant of which is the Marpa parser This disambiguation page lists articles associated...

Word Count : 95

Extensible programming

Last Update:

language with syntax and semantics that are mutable at runtime π - another programming language with extensible syntax, implemented using an Earley parser...

Word Count : 1731

SYNTAX

Last Update:

The non-deterministic features include an Earley parser generator used for natural language processing. Parsers generated by SYNTAX include powerful error...

Word Count : 412

Ambiguous grammar

Last Update:

context-sensitive parsing rules, so the overall phrase grammar is unambiguous.[citation needed] Some parsing algorithms (such as Earley or GLR parsers) can generate...

Word Count : 1820

Formal grammar

Last Update:

grammar into a working parser. Strictly speaking, a generative grammar does not in any way correspond to the algorithm used to parse a language, and various...

Word Count : 3431

Definite clause grammar

Last Update:

an article called "Parsing as Deduction", describing things such as how the Earley Deduction proof procedure is used for parsing. Pereira also collaborated...

Word Count : 1902

PDF Search Engine © AllGlobal.net