LALR Parser Generator

LALR Parser Generator

Infobox Software
name = LPG



caption =
developer = Philippe Charles
latest release version =
latest release date =
latest preview version =
latest preview date =
operating system =
platform =
genre = parser/scanner generator
license = EPL
website = http://sourceforge.net/projects/lpg/
The LALR Parser Generator (LPG, formerly known as JikesPG) is an open source lexical analyzer generator and LALR parser generator for the Java programming language. The input grammars are written as BNF rules. LPG supports backtracking to resolve ambiguities and generates code for the representation of abstract syntax trees. One of the strengths of LPG is its error recovery method. [See Philippe Charles, "A Practical method for Constructing Efficient LALR(k) Parsers with Automatic Error Recovery", the Ph.D. thesis of the main developer of LPG. Available from the [http://jikes.sourceforge.net/documents/ website of Jikes] .]

The Java development tools of the IDE Eclipse use LPG to generate a parser for parsing Java.

ee also

* Comparison of parser generators

External links

* [http://sourceforge.net/projects/lpg/ Official LPG web site]
* [http://domino.research.ibm.com/comm/research_projects.nsf/pages/safari.LPG.html LPG Quickstart]

Notes


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • LALR parser — In computer science, a lookahead LR parser or LALR parser is a specialized form of LR parser that can deal with more context free grammars than Simple LR (SLR) parsers. It is a very popular type of parser because it gives a good trade off between …   Wikipedia

  • Parser-Generator — Ein Parsergenerator ist ein Computerprogramm, das unter Eingabe einer Spezifikation einen Parser erzeugt. Inhaltsverzeichnis 1 Grundlagen 2 Algorithmen 3 Siehe auch 4 Weblinks // …   Deutsch Wikipedia

  • Lemon Parser — Lemon is an LALR parser generator for C or C++. It does the same job as GNU bison and yacc; however, Lemon is not another bison or yacc clone. It uses a different grammar syntax which is designed to reduce the number of coding errors. Lemon also… …   Wikipedia

  • Comparison of parser generators — This is a list of notable lexer generators and parser generators for various language classes. Contents 1 Regular languages 2 Deterministic context free languages 3 Parsing expression grammars, deterministic boolean grammars …   Wikipedia

  • LR parser — In computer science, an LR parser is a parser for context free grammars that reads input from Left to right and produces a Rightmost derivation. The term LR( k ) parser is also used; here the k refers to the number of unconsumed look ahead input… …   Wikipedia

  • Simple LR parser — In computer science, a Simple LR parser or SLR parser is created by an SLR parser generator which reads a BNF grammar and constructs an LR(0) state machine and computes the look aheads sets for each reduction in a state by examining the Follow… …   Wikipedia

  • LL parser — An LL parser is a top down parser for a subset of the context free grammars. It parses the input from Left to right, and constructs a Leftmost derivation of the sentence (hence LL, compared with LR parser). The class of grammars which are… …   Wikipedia

  • Recursive descent parser — A recursive descent parser is a top down parser built from a set of mutually recursive procedures (or a non recursive equivalent) where each such procedure usually implements one of the production rules of the grammar. Thus the structure of the… …   Wikipedia

  • Principles of Compiler Design — by Alfred Aho and Jeffrey D. Ullman, is a classic textbook on compilers for computer programming languages.It is often called the dragon book because its cover depicts a knight and a dragon in battle; the dragon is green, and labeled Complexity …   Wikipedia

  • LPG — might be an initialism or abbreviation for: * Liquefied petroleum gas * Laboratoire de Planetologie, Grenoble, France * Landwirtschaftliche Produktionsgenossenschaft (German, obsolete/historical) * Llanfairpwll railway station, Wales; National… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”