Syntactic error handling in LR parsers