Re: LR Grammars not in LALR(1) or LR(1)

"M.G.J. van den Brand" <Mark.van.den.Brand@cwi.nl>
25 Sep 2002 23:58:50 -0400

          From comp.compilers

Related articles
[5 earlier articles]
Re: LR Grammars not in LALR(1) or LR(1) haberg@matematik.su.se (Hans Aberg) (2002-09-12)
Re: LR Grammars not in LALR(1) or LR(1) soenke.kannapinn@wincor-nixdorf.com (=?Windows-1252?Q?S=F6nke_Kannapinn?=) (2002-09-14)
Re: LR Grammars not in LALR(1) or LR(1) haberg@matematik.su.se (Hans Aberg) (2002-09-14)
Re: LR Grammars not in LALR(1) or LR(1) thp@cs.ucr.edu (2002-09-20)
Re: LR Grammars not in LALR(1) or LR(1) haberg@matematik.su.se (Hans Aberg) (2002-09-22)
Re: LR Grammars not in LALR(1) or LR(1) thp@cs.ucr.edu (2002-09-25)
Re: LR Grammars not in LALR(1) or LR(1) Mark.van.den.Brand@cwi.nl (M.G.J. van den Brand) (2002-09-25)
Re: LR Grammars not in LALR(1) or LR(1) Mark.van.den.Brand@cwi.nl (M.G.J. van den Brand) (2002-09-29)
Re: LR Grammars not in LALR(1) or LR(1) haberg@matematik.su.se (Hans Aberg) (2002-09-29)
Re: LR Grammars not in LALR(1) or LR(1) joachim_d@gmx.de (Joachim Durchholz) (2002-09-29)
Re: LR Grammars not in LALR(1) or LR(1) clint@0lsen.net (Clint Olsen) (2002-10-13)
Re: LR Grammars not in LALR(1) or LR(1) cfc@shell01.TheWorld.com (Chris F Clark) (2002-10-13)
Re: LR Grammars not in LALR(1) or LR(1) Mark.van.den.Brand@cwi.nl (M.G.J. van den Brand) (2002-10-13)
[4 later articles]
| List of all articles for this month |

From: "M.G.J. van den Brand" <Mark.van.den.Brand@cwi.nl>
Newsgroups: comp.compilers
Date: 25 Sep 2002 23:58:50 -0400
Organization: Centrum voor Wiskunde en Informatica (CWI)
References: 02-09-014 02-09-029 02-09-068 02-09-092 02-09-097 02-09-126 02-09-130
Keywords: parse
Posted-Date: 25 Sep 2002 23:58:50 EDT

thp@cs.ucr.edu wrote:
>
> ... Almost every parser-
> >generation tool has some form of disambiguation rules, so nobody in
> >their right mind submits an LALR(1) grammar to, say, YACC. Rather,
> >they submit a more intuitive and compact ambiguous grammar, one that
> >reflects the semantics of the language, and then use the disambuation
> >rules to make it parsable.
>
> Even though precedence rules can be made a part of the grammar:
>
> I got the references:
> http://www.cs.uu.nl/people/visser/ftp/BSVV02.pdf
> http://citeseer.nj.nec.com/cache/papers/cs/6488/http:zSzzSzftp.cs.uu.nlzSzpeoplezSzvisserzSzpublicationszSz..zSzftpzSzP9707.pdf/visser97scannerles.pdf
>
> But I haven't looked it fully up yet.


This paper describes how disambiguation rules (e.g., priority and
associativity) can be used to filter parse trees produced by a GLR
parser. In fact, this paper is based on our experiences of using a
Scannerless GLR parser in an environment for language prototyping. In
order to facilitate the prototyping of language definitions you do not
want to be hindered by massaging your context-free grammar into some
(LA)LR form. We use a powerful formalism to define both the lexical
and context-free grammar of a programming language in a modular and
declarative manner.


-- Mark


----------------------------------------------------------------
M.G.J. van den Brand,
Department of Software Engineering
CWI
Kruislaan 413, NL-1098 SJ AMSTERDAM, The Netherlands.


Tel___(+31) 20 5924213 WWW____http://www.cwi.nl/~markvdb/
Fax___(+31) 20 5924199 Email__Mark.van.den.Brand@cwi.nl
----------------------------------------------------------------


Post a followup to this message

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