rpn icon indicating copy to clipboard operation
rpn copied to clipboard

Syntax errors should be shown after stack

Open louisrubet opened this issue 2 years ago • 0 comments

otherwise you cannot see the lexer error. To reproduce:

rpn> 1 1000 for i i next
(...)
2> 999
1> 1000

Here you see 1000 lines of numbers (this is correct).

rpn> 1 2 start missing next or step after for or start: error 11: syntax error 2> 999 1> 1000

Here you see a syntax error message then 1000 lines of numbers, which is not convenient.

louisrubet avatar Mar 31 '22 09:03 louisrubet