An LR Parsing Technique for Extended Context-Free Grammars