DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Odd behavior when redirecting insufficient input from file to readString #92

Open DylanSp opened 3 years ago

DylanSp commented 3 years ago

When there are more readString() calls than lines in a file that's redirected to stdin, the string "undefined" is returned from the readString() call. This is probably not how it should behave; it should either return a Wheel null or throw a runtime error.

DylanSp commented 3 years ago

Leaning towards throwing a runtime error.