CS 3304: Comparative Languages |
Syntax |
[ Course Documents ] : [ Syntax ] | ||||||||
|
<term> -> <factor> {(* | /) <factor>}
void term() { factor(); /* parse the first factor*/ while (next_token == ast_code || next_token == slash_code) { lexical(); /* get next token */ factor(); /* parse the next factor */ } }