goddamn writing a recursive descent parser is a lot harder when you wanna do good syntax error recovery
@eniko try with an lalr(1) parser generator. my diploma thesis project from 1989 using yacc was about 50% error rules
@PeterSommerlad @eniko I originally struggled with error rules and Yaccob in Mono’s C# compiler, but once I got a hang of it, it was both a pleasure to use, but also I used the idioms to implement the REPL intelligence and the old IDE intellicode.
@PeterSommerlad @eniko typo, not yaccob- yacc