|Production missing on page 9 of Compiler Construction email@example.com (firstname.lastname@example.org) (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 email@example.com (Adrian Devries) (2007-09-02)|
|Re: Production missing on page 9 of Compiler Construction firstname.lastname@example.org (2007-09-03)|
|Date:||Fri, 31 Aug 2007 17:34:57 -0700|
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?
The only thing I can think of is that it is missing a production at
A = E
>From this BNF it writes this "programs" (on page 10):
Return to the
Search the comp.compilers archives again.