LR techniques for handling syntax errors