
Shift-Reduce Parsing and Handles
Bottom-up parsing as a rightmost derivation in reverse: handles, handle pruning and viable prefixes. A full SLR-driven trace of id * id + id with states, input and action, counted shifts and reductions, the four actions, and the two kinds of conflict with their usual causes. Operator-precedence parsing in brief: operator grammars, the precedence relations computed from LEADING and TRAILING sets, and the limits of the method. All tables and traces come from a script.




