Re: Production missing on page 9 of Compiler Construction

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Sat, 01 Sep 2007 04:36:58 +0200

          From comp.compilers

Related articles
Production missing on page 9 of Compiler Construction pupeno@pupeno.com (pupeno@pupeno.com) (2007-08-31)
Re: Production missing on page 9 of Compiler Construction DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-09-01)
Re: Production missing on page 9 of Compiler Construction adrian.devries@t-online.de (Adrian Devries) (2007-09-02)
Re: Production missing on page 9 of Compiler Construction torbenm@app-7.diku.dk (2007-09-03)
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Sat, 01 Sep 2007 04:36:58 +0200
Organization: Compilers Central
References: 07-08-095
Keywords: books, parse

pupeno@pupeno.com wrote:


> I'm reading Compiler Construction, by Niklaus Wirth, available on
> http://www.oberon.ethz.ch/WirthPubl/CBEAll.pdf and on page 9 he shows
> this little piece of BNF:
>
> E = T | A "+" T.
> T = F | T "*" F.
> F = V | "(" E ")".
> V = "a" | "b" | "c" | "d".
>
> A is being used on the right hand side without it being defined on the
> left hand side first. What am I missing?


IMO it's a typo, should read 'E'.
E = Expression
T = Term
F = Factor
V = Value
A is not mentioned elsewhere.


DoDi



Post a followup to this message

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