Lexers do not currently support a way to notify the system that they encountered an error in the text. They can return a result that indicates whether text contains a match, a partial match or no match, but they can't return a result that indicates that parsing should be aborted because of a partial match or no match.
Lexers do not currently support a way to notify the system that they encountered an error in the text. They can return a result that indicates whether text contains a match, a partial match or no match, but they can't return a result that indicates that parsing should be aborted because of a partial match or no match.