by alcover · 3y ago · 0 comments
String s = hello world";
[-> typename:'String' id's' op'=' id'hello' id'world' ...]
And it would cascade if then foo("blah"); (...)
[-> strlit';\nfoo(' id'blah' ...]
A parser-first approach will stop with unknown id 'hello'
and avoid the cascade.Users love consolidated, efficient feedback without having to peel back errors one at a time. It’s a distinguishing feature when you can find a way to do it that suits your input, and specifically so because it can be a hard problem to solve well!
1. Hand-written, recursive descent
2. Error matching expanded grammar beyond minimal gramar