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

Spaces on certain keywords? #78

Open
blazer2k1 opened this issue Sep 6, 2023 · 3 comments
Open

Spaces on certain keywords? #78

blazer2k1 opened this issue Sep 6, 2023 · 3 comments

Comments

@blazer2k1
Copy link

Is there a way to modify and use keywords with spaces, like:

END DEF instead of ENDDEF or END CLASS instead of ENDCLASS

@paladin-t
Copy link
Owner

It's a bit difficult to do it that way, because it requires changing a lot of the parser and tokenizer.

@blazer2k1
Copy link
Author

blazer2k1 commented Sep 6, 2023

got it, but where to start? or perhaps consider this as future enhancement?

It would be nice to really have the standard BASIC convention..

Def Hello(string$)
  ...
End Def
If a > b
...
ElseIf
...
End If

@wwiv
Copy link
Contributor

wwiv commented Oct 10, 2024

I accidentally had a space in between endif "end if" and the script failed with SE_RN_INCOMPLETE_STRUCTURE on the last line (similar to #59's error case on import)

Any ideas how to improve the parser to error on the right line?

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

3 participants