You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not stated whether blank lines should increment the line counter in either REPL or file mode.
In the errors for REPL, "LET A" outputs "Operator LET applied to empty stack". However, "LET" is a keyword. Shouldn't this be an error code 5 instead?
Laboon's Response:
This is ambiguous based on the requirements (since I say "blank lines should be ignored") but I would say that even blank lines increment the counter.
Good point. The way I wrote it, both keywords and operators do the same "kind" of thing and I didn't differentiate. Ideally it should be error code 5 but I would be content with either way of doing it.
The text was updated successfully, but these errors were encountered:
It is not stated whether blank lines should increment the line counter in either REPL or file mode.
In the errors for REPL, "LET A" outputs "Operator LET applied to empty stack". However, "LET" is a keyword. Shouldn't this be an error code 5 instead?
Laboon's Response:
This is ambiguous based on the requirements (since I say "blank lines should be ignored") but I would say that even blank lines increment the counter.
Good point. The way I wrote it, both keywords and operators do the same "kind" of thing and I didn't differentiate. Ideally it should be error code 5 but I would be content with either way of doing it.
The text was updated successfully, but these errors were encountered: