News for hackers. Stuff that matters.
Re:Vis: A Vim-Like Text Editor by mbrock on Thursday April 07, 2016 @08:18AM (#11446629)
Does this kind of PEG parser deal somewhat decently with partial or incorrect syntax trees?
Re:Vis: A Vim-Like Text Editor by vbit on Thursday April 07, 2016 @12:28PM (#11448536)
The parser will match the specified grammar exactly, like it should. You could of course specify a grammar that is broader than the actual language you are parsing.
Re:Vis: A Vim-Like Text Editor by mbrock on Thursday April 07, 2016 @02:22PM (#11449387)
Well, I am vaguely aware of the existence of "incremental parsers" and "tolerant parsers", and a code editor necessarily works on code that's only partially correct...