On 8/7/2012 1:14 AM, Jonathan M Davis wrote:
But you can also configure the lexer to return an error token instead of using
the delegate if that's what you prefer. But Walter is right in that if you
have to check every token for whether it's an error, that will incur overhead.
So, depending on your use case, that could be unacceptable.

It's not just overhead - it's just plain ugly to constantly check for error tokens. It's also tedious and error prone to insert those checks.

I don't see any advantage to it.


Reply via email to