(1) derive a legal sentence.
expr −→ term | expr add op term
term −→ factor | term mult op factor
factor −→ id | number | - factor | ( expr )
add op −→ + | - mult
op −→ * | /
Get Answers For Free
Most questions answered within 1 hours.