] >
| E | E+E | |
| E*E | ||
| (E) | ||
| id |
|
|
|
|
|
|
reduce on lookahead + (associativity):
...........
: E :reduce : | : : +--+--+ : : | | | : ..........: E + E .+ E : ^ : :shift +.+
shift on lookahead * (priority):
...........
: E :reduce : | : : +--+--+ : : | | | : ..........: E + E .* E : ^ : :shift +.+
|
reduce on lookahead * (associativity) |
|
|