Parser
Parser copied to clipboard
Error in source yields infinite iterator
let tokens = lex("print(", Mode::Expression);
tokens is an infinite iterator when the source contains an error.
Is it intended behaviour for the iterator to be infinite?