LALR parser
Look-ahead left-to-right, rightmost derivation parser
An LALR parser (look-ahead, left-to-right, rightmost derivation parser) is a type of parser for computer languages. It is a simplified version of a canonical LR parser.
Nº Q1204392 ★
Comum · Saberes
LALR parser
Look-ahead left-to-right, rightmost derivation parser
An LALR parser (look-ahead, left-to-right, rightmost derivation parser) is a type of parser for computer languages. It is a simplified version of a canonical LR parser.
Na Wikipédia
Texto em inglês Ainda não há artigo no seu idioma: trecho em inglês.
An LALR parser (look-ahead, left-to-right, rightmost derivation parser) is a type of parser for computer languages. It is a simplified version of a canonical LR parser. The LALR parser was invented by Frank DeRemer in his 1969 PhD dissertation, Practical Translators for LR(k) languages, in his treatment of the practical difficulties at that time of implementing LR(1) parsers. He showed that the LALR parser has more language recognition power than the LR(0) parser, while requiring the same number of states as the LR(0) parser for a language that can be recognized by both parsers. This makes the LALR parser a memory-efficient alternative to the LR(1) parser for languages that are LALR. It was also proven that there exist LR(1) languages that are not LALR. Despite this weakness, the power of the LALR parser is sufficient for many mainstream computer languages, including Java, though the reference grammars for many languages fail to be LALR due to being ambiguous. The original dissertation gave no algorithm for constructing such a parser given a formal grammar. The first algorithms for LALR parser generation were published in 1973. In 1982, DeRemer and Tom Pennello published an algorithm that generated highly memory-efficient LALR parsers. LALR parsers can be automatically generated from a grammar by an LALR parser generator such as Yacc or GNU Bison. The automatically generated code may be augmented by hand-written code to augment the power of the resulting parser.
Texto: Wikipédia em inglês, CC BY-SA 4.0. ·
Cartas próximas
-
A
Analisador sintático LL
Nº Q932615 ★★
Sem ofertas
-
A
Analisador sintático LR
Nº Q1756442 ★
Sem ofertas
-
A
ANTLR
LL(*) parser generator program
Nº Q295801 ★
Sem ofertas
-
Perl
Linguagem de programação
Nº Q42478 ★★★
Sem ofertas
-
GNU bison
Um gerador de analisador de propósito geral
Nº Q1071969 ★
Sem ofertas
-
Lenstra–Lenstra–Lovász lattice basis reduction algorithm
Algorithm for finding a basis of short vectors in a lattice
Nº Q1683648 ★★★
Sem ofertas