Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors should be shown after stack #273

Open
louisrubet opened this issue Mar 31, 2022 · 0 comments
Open

Syntax errors should be shown after stack #273

louisrubet opened this issue Mar 31, 2022 · 0 comments
Milestone

Comments

@louisrubet
Copy link
Owner

louisrubet commented Mar 31, 2022

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 louisrubet changed the title Syn error should be shown after stack Syntax errors should be shown after stack Sep 22, 2022
louisrubet added a commit that referenced this issue Sep 22, 2022
@louisrubet louisrubet added this to the Delivery v3.0 milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant