3 ms·
For syntax errors, check out: http://research.swtch.com/yyerror http://research.swtch.com/yyerror It's not "AI" but I think it's a much more practical approach
by chubot 13y ago
For syntax errors, check out: http://research.swtch.com/yyerror http://research.swtch.com/yyerror
It's not "AI" but I think it's a much more practical approach that any parser could implement, with enough work and feedback.
I haven't used Go enough to know if this technique makes a qualitative difference on the friendliness of error messages. Interested to hear opinions.
- ansimionescu 13y agoI've used Go for a personal project for a bit now and the compiler output is pretty good and consistent; beats Python and C++, I'd say.