Re:Pratt Parsers: Expression Parsing Made Easy (2011)
by ReleaseCandidat on Saturday January 20, 2024 @09:46AM
(#39068029)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.