Home | Notes | Languages | Programs | Homework |
grammar rules |
§ídësmâçk (csides@VT.EDU)
Tue, 25 Sep 2001 21:36:34 -0400
Message-ID: <4.3.0.20010925213607.00b95ea8@mail.vt.edu> Date: Tue, 25 Sep 2001 21:36:34 -0400 From: §ídësmâçk <csides@VT.EDU> Subject: 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
Home | Notes | Languages | Programs | Homework |