home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,047 of 2,753   
   Hans-Peter Diettrich to pupeno@pupeno.com   
   Re: Production missing on page 9 of Comp   
   01 Sep 07 04:36:58   
   
   From: DrDiettrich1@aol.com   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca