moon
moon copied to clipboard
Error Handling
The lexer should never be responsible for reporting errors. If something is incorrect, the lexer should return an Unknown token. The parser will be responsible for dealing with it.