On Sat, Feb 3, 2018 at 12:42 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:
> Perhaps I should implement error recovery, so that ill-formed prefs won't
>> cause subsequent prefs to be lost.
> You mean pick up parsing again after hitting an error? That sounds
It shouldn't be too hard, because the prefs grammar is very simple. I would
just implement "panic mode" recovery, which scans for a synchronizing token
like ';' or 'pref' and then continues from there. It's not foolproof but
works well in many cases.
dev-platform mailing list