3 ms·
It depends on the language you're parsing, of course. But the most important thing is to know when your parser is on the right track again. The (most of the tim
by ReleaseCandidat 3y ago
It depends on the language you're parsing, of course. But the most important thing is to know when your parser is on the right track again. The (most of the time) easiest (but not necessarily first possible) such point is the next definition statement.
And make sure to _always_ consume (at least) one token (even if just adding it to the error expression in the AST), so there is no possibility of an endless loop.