Better syntax errors for LR parsers

https://soft-dev.org/pubs/html/diekmann_tratt__dont_panic/