How to read this grammar? (The C Programming Language 2e) -
this grammar reference section of 'the c programming language 2e'.
a.7.6 multiplicative operators
the multiplicative operators *, /, , % group left-to-right.
multiplicative-expression: multiplicative-expression * cast-expression multiplicative-expression / cast-expression multiplicative-expression % cast-expression
i understand multiplicative-expression consists of 3 sub expressions. looks circular grammar me. because grammar not include terminal expressions 'primary expression'.
how read grammar?
the definitive reference should 1 of standards or draft standard both c99 , c11 publicly available. if @ draft c99 standard section 6.5.5
multiplicative operators grammar follows:
multiplicative-expression: cast-expression multiplicative-expression * cast-expression multiplicative-expression / cast-expression multiplicative-expression % cast-expression
Comments
Post a Comment