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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -