Closed Mido-sys closed 1 year ago
(Note for future reference: The description is almost correct but the condition is not "when an uninitialized variable is called" but "the let
statement is not correctly used without equal sign".)
I reverted merged PR #171 with #172. Please take a look at the comments on PR #171 and please consider filing a new PR! I will do my best to review that this time! (Sorry again for the delayed review :-)
@sio4, I sent another PR :)
Description
When an uninitialized variable is called plush panics. Due to
parseLetStatement()
returns nil if the next token isn't=
. As a result, whenparseProgram()
callsstmt.String()
it panics as stmt is holding a nil value.To Reproduce