Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: grammar rules

New Message Reply About this list Date view Thread view Subject view Author view

Jonathan Berkowitz (jberkowi@VT.EDU)
Tue, 25 Sep 2001 21:40:50 -0400


Message-ID:  <000001c1462c$4577d0b0$3d4723d0@Jon>
Date:         Tue, 25 Sep 2001 21:40:50 -0400
From: Jonathan Berkowitz <jberkowi@VT.EDU>
Subject:      Re: grammar rules

The { } mean the contents inside can occur zero or more times so a
factor can be just a single integer and an additive expression can just
be a single term

-----Original Message-----
From: discussion list [mailto:CS3304_91312@listserv.vt.edu] On Behalf Of
§ídësmâçk
Sent: Tuesday, September 25, 2001 9:37 PM
To: CS3304_91312@LISTSERV.VT.EDU
Subject: [CS3304_91312] grammar rules

In the grammar rules, its states...
<additive_expr> --> <term> { ( '+' | '-' ) <term> }
     <term> --> <factor> { ( '*' | '/' | '%' ) <factor> }

I take this to mean that an add. expr is made of a term + or - another
term and a term is made of a factor * or / or % by another factor.
If this is so, where does 3+4 fall? I can see that 3+4 is = to
(3*1)+(4*1), but should we have to make that distinction? -Chris


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>