Re: Shift/reduce conflict in Yacc C grammar

khays@sequent.com (Kirk Hays)
23 Jan 1998 00:20:51 -0500

          From comp.compilers

Related articles
Shift/reduce conflict in Yacc C grammar hajnal@eik.bme.hu (HAJNAL Akos) (1998-01-11)
Re: Shift/reduce conflict in Yacc C grammar thetick@magelang.com (Scott Stanchfield) (1998-01-14)
Re: Shift/reduce conflict in Yacc C grammar clark@quarry.zk3.dec.com (Chris Clark USG) (1998-01-20)
Re: Shift/reduce conflict in Yacc C grammar Bronikov@inreach.com (Dmitri&Nina Bronnikov) (1998-01-21)
Re: Shift/reduce conflict in Yacc C grammar corbett@lupa.Eng.Sun.COM (1998-01-23)
Re: Shift/reduce conflict in Yacc C grammar khays@sequent.com (1998-01-23)
Re: Shift/reduce conflict in Yacc C grammar cfc@world.std.com (Chris F Clark) (1998-01-24)
Re: Shift/reduce conflict in Yacc C grammar thetick@magelang.com (Scott Stanchfield) (1998-01-24)
| List of all articles for this month |
From: khays@sequent.com (Kirk Hays)
Newsgroups: comp.compilers
Date: 23 Jan 1998 00:20:51 -0500
Organization: Sequent Computer Systems, Inc.
References: 98-01-035 98-01-058 98-01-079 98-01-088
Keywords: C, parse

Dmitri&Nina Bronnikov <Bronikov@inreach.com> wrote:
>Problem is easy to resolve by splitting balanced (all 'if's have
>'else's in 'then' parts) and unbalanced if statements. I've not seen
>anybody using this in practice until recently - you can see one at
>(mind yourself it's rather long html)
>
>[That splitting is a standard technique, but it's in the folklore, not
>written up in a lot of places. -John]


The earliest implementation of such splitting I've seen was in Intel's
PL/M-86 compiler, circa 1981.


--
Kirk Hays
--


Post a followup to this message

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