News for hackers. Stuff that matters.
Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by estebank on Wednesday July 15, 2020 @07:25PM (#23853695)
Approaching this from the opposite side, language designers should also take into account how code with slight mistakes (typos and confused use of features) could be detected. Sometimes adding small things to the grammar can pay a lot of dividends when writing the production ready compiler. Alternatively when adding a new feature they should be thinking "what common mistakes will be made to produce worse errors if we introduce this with this syntax".
Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by zffr on Wednesday July 15, 2020 @09:04PM (#23854535)
I think in some cases they do. Python3’s parser can detect when people use the old print syntax for example.