return lexer error for unknown characters #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the lexer hits an infinite loop when an unknown character is seen. Fix this and return a lexer error.
A complication here is that internal helper functions like find_longest_match() and transition() can have multiple result types, each specific to the individual function. I need to come up with a better way to represent these function return statuses, preferably avoiding exceptions.