This grammar is from the reference section "Ce 2e Programming Language".
A.7.6 Multiplicative operators
Multiplicative operators *, / and% of the group from left to right.
multiplicative-expression:
multiplicative-expression * cast-expression
multiplicative-expression / cast-expression
multiplicative-expression % cast-expression
I understand that a multiplicative expression consists of three subexpressions. but to me it looks like a circular grammar. Because the grammar does not include terminal expressions such as "primary expression".
How to read this grammar?
source
share