The huge blob of C Code is pratically useless and should be replaced by pseudocode (or thrown away altogether).

Isn't "SLR" an acronym for "Shift-Left-Reduce"? Not "Simple L-R" as implied by the text.

-- No, it is Simple LR, due to it being in fact a simpler variation of LR grammar. (Kenneth Louden's book)