Lexer edge cases and error recovery
What a lexer should do when it meets characters that don't fit any pattern, and why crashing on the first bad character is the wrong answer.
9 min readUpdated 2026-09-03compiler-designlexical-analysiserror-recoverycpp