RustPython / Parser

MIT License
77 stars 29 forks source link

Error in source yields infinite iterator #118

Open nithinmuthukumar opened 7 months ago

nithinmuthukumar commented 7 months ago

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?