how can the compiler tell in what order to evaluate an arith
how can the compiler tell in what order to evaluate an arithmetic expression?
Solution
It has syntax analyser,which does this operations for it.This syntax analyser is also called as parser. It looks at the expression and converts it into an syntax tree which is abstract in nature.parser also lists all its allowable substitutions and tries to find a series of them which matches the input code .while creation of syntax trees ,it considers precedence and associativity concpts
