Home  |   Notes  |   Languages  |   Programs  |   Homework

grammar rules

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

§í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


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>