News for hackers. Stuff that matters.
Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by tzs on Wednesday July 15, 2020 @05:43PM (#23852365)
In the first figure, it gives "int x y;" and says that the new algorithm gives the complete set of minimal cost repair sequences, which is in this case "Delete y", "Insert ,", and "Insert =".

I haven't read the article, so maybe this is covered later, but why isn't "Delete x" included?

Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by laszlokorte on Wednesday July 15, 2020 @05:55PM (#23852576)
Just a guess: "int x" could already be comsumed so there is no need to change anything about it. It's only the next token that can not be processed.
Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by choeger on Thursday July 16, 2020 @04:01AM (#23856834)
Intriguing, so if we design a language that allows for:

int single x;

and

int x y z;

The error for

int single x y z;

Would be to delete "y" and "z", but not to delete "single"?