Semantics Influences Parsing
Example: Operator Precedence:
| A + B * C | |
| means: | A + (B * C) |
| not: | (A + B) * C |
Possible solutions:
if ( x > y && y > z ) ...
if x > y and y > z then ...
The Pascal version shown above generates an error; it must be written as:
if (x > y) and (y > z) then ...