Generalized LR Parsing