Re: LR(1) Parser Generator

"Mark" <cotemark@globetrotter.net>
23 Jul 2001 23:25:35 -0400

          From comp.compilers

Related articles
LR(1) Parser Generator tej@melbpc.org.au (Tim Josling) (2001-07-17)
Re: LR(1) Parser Generator marcov@toad.stack.nl (2001-07-18)
Re: LR(1) Parser Generator vmakarov@redhat.com (Vladimir Makarov) (2001-07-18)
Re: LR(1) Parser Generator mike@dimmick.demon.co.uk (Mike Dimmick) (2001-07-18)
Re: LR(1) Parser Generator tej@melbpc.org.au (Tim Josling) (2001-07-23)
Re: LR(1) Parser Generator haberg@matematik.su.se (2001-07-23)
Re: LR(1) Parser Generator david@tribble.com (David R Tribble) (2001-07-23)
Re: LR(1) Parser Generator cotemark@globetrotter.net (Mark) (2001-07-23)
Re: LR(1) Parser Generator thp@cs.ucr.edu (2001-07-30)
Re: LR(1) Parser Generator soenke.kannapinn@wincor-nixdorf.com (Sönke Kannapinn) (2001-08-02)
Re: LR(1) Parser Generator tej@melbpc.org.au (Tim Josling) (2001-08-06)
LR(1) Parser Generator pjain@iitk.ac.in (2003-04-05)
| List of all articles for this month |

From: "Mark" <cotemark@globetrotter.net>
Newsgroups: comp.compilers
Date: 23 Jul 2001 23:25:35 -0400
Organization: GlobeTrotter
References: 01-07-060
Keywords: parse, LR(1)
Posted-Date: 23 Jul 2001 23:25:35 EDT

Tim Josling <tej@melbpc.org.au> wrote in message
> I am looking for the source for an LR(1) compiler, preferably
> written in C, and with open source licencing. Google cannot help.


Hi,


See the COCOM tool set (Russian Armoury) Vladimir Makarov,
vmakarov@users.sourceforge.net


http://sourceforge.net/projects/cocom/


The latest version (0.993) has an Earley parser.


Extracted form: http://cocom.sourceforge.net/index.html


4. MSTA (syntax description translator)


The MSTA can emulate YACC (Posix standard or System V Yacc). The MSTA
have the following additional features:


Fast LR(k) and LALR(k) grammars (with possibility resolution of
conflicts). Look ahead of only necessary depth (not necessary given
k). Originally LALR(k) parsers are generated by modified fast
DeRemer's algorithm. Parsers generated by MSTA are up to 50% faster
than ones generated by BISON and BYACC but usually have bigger size.
Extended Backus-Naur Form (EBNF), and constructions for more
convenient description of the scanners. More convenient naming
attributes. Optimizations (extracting LALR- and regular parts of
grammars and implementing parsing them by adequate methods) which
permit to use MSTA for generation of effective lexical analyzers. As
consequence MSTA permits to describe easily (by CFG) scanners which
can not be described by regular expressions (i.e. nested comments).
More safe error recovery and reporting (besides error recovery method
of YACC). Fast generation of fast parsers.


  ---
Marc


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.