Jump to content

LALR parser

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dmerrill (talk | contribs) at 21:26, 11 October 2001 (fix typo in link to computer science). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

An LALR parser is a term from computer science; it is a particular parser generated by the

Lookahead LR parser generator algorithm (Lookahead LR is abbreviated LALR).

The LALR algorithm produces LR parsers; they are used for recognizing strings from the language of a context free grammar.


An LR parser usually consists of a driver program and a table; the LALR algorithm produces the table, so sometimes LALR parser is used to refer to the table. Once the table has been generated

it isn't in general possible to tell what algorithm was used to

generate it.


Yacc uses the Lookahead LR parser generator algorithm to produce parsers. It is commonly used in constructing programming language compilers.


/Talk