Re: LR-regular parsers for dummies ?

dvandeun@vub.ac.be (Dirk van Deun)
31 Oct 1999 01:17:16 -0400

          From comp.compilers

Related articles
LR-regular parsers for dummies ? dvandeun@vub.ac.be (1999-10-28)
Re: LR-regular parsers for dummies ? laski@ics.uci.edu (Ziemowit Laski) (1999-10-29)
Re: LR-regular parsers for dummies ? chrisd@reservoir.com (Chris Dodd) (1999-10-29)
Re: LR-regular parsers for dummies ? dvandeun@vub.ac.be (1999-10-31)
Re: LR-regular parsers for dummies ? world!cfc@uunet.uu.net (Chris F Clark) (1999-10-31)
Re: LR-regular parsers for dummies ? world!cfc@uunet.uu.net (Chris F Clark) (1999-10-31)
| List of all articles for this month |

From: dvandeun@vub.ac.be (Dirk van Deun)
Newsgroups: comp.compilers
Date: 31 Oct 1999 01:17:16 -0400
Organization: Brussels Free Universities VUB/ULB
References: 99-10-142 99-10-171
Keywords: LR(1), theory

: input and decides which action to take. The method works by
: constructing an RE for each of the conflicting actions, and then
: building a DFA that recognizes them simultanueously; whichever RE


Can anyone explain then what the intuitive idea is behind these two
algorithms ? (i.e. for constructing the RE -- done by a parser
generator I hope; and the operation of the DFA.) That exactly is the
densest part of the paper.


: Its not at all clear if its all that useful. In my experience, real
: grammars tend to be either LR(1) (in which case the extra power isn't
: needed) or ambiguous (in which case it doesn't help).


Real grammars may tend to be LR(1) as you say, but embedding actions
in a bison script may destroy the original LR(1)-ness (because a
reduce decision must be made sooner.) More powerful parser generators
might make life easier for the programmer and allow him/her to simply
copy the language specification into a parser generating script and
add embedded actions anywhere, without any need for tweaking.


Dirk van Deun Ceterum censeo Redmond delendum
--
Currently at: dirk@igwe.vub.ac.be http://student.vub.ac.be/~dvandeun
Permanent mail forwarder: dvandeun@poboxes.com


Post a followup to this message

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