A comparison

We compare how to specify the syntax of simple arithmetic expression.

Grammar:

expr ::= expr + term
       | expr - term
       | term
term ::= term * factor
       | term / factor
       | factor
factor ::= number
         | ( expr )