CS1632_Spring2018 icon indicating copy to clipboard operation
CS1632_Spring2018 copied to clipboard

+2 ISSUE #40

Open Scott-Crawford opened this issue 7 years ago • 0 comments

  1. It is not stated whether blank lines should increment the line counter in either REPL or file mode.

  2. 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:

  1. 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.

  2. 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.

Scott-Crawford avatar Apr 15 '18 18:04 Scott-Crawford