How a shift-reduce parser builds the tree from the leaves, handles and reductions, a full trace for id + id * id, and how SLR, LALR and CLR differ.