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

Feature request: Strict mode #46

Open
Malcohol opened this issue Dec 28, 2020 · 0 comments
Open

Feature request: Strict mode #46

Malcohol opened this issue Dec 28, 2020 · 0 comments

Comments

@Malcohol
Copy link

Malcohol commented Dec 28, 2020

Hi!

I was using the basicode-interpreter to develop a BASICODE program. For this use-case it is really handy, but there is a major pitfall: it's very easy to write code which does not satisfy the requirements of correct BASICODE and therefore will not run correctly when loaded into other interpreters.

I propose the addition of an optional strict mode, which issues syntax or runtime errors for non-conformant code.

Examples include the 60 character limit on lines and the variable naming restrictions mentioned in the BASICODE documentation.

Another issue I personally hit is that the interpreter returns the bitwise result for AND and OR. Unfortunately, that behavior should not be relied on in BASICODE, where only logical AND and OR should be assumed. (For example, 2 AND 1 on a ZX Spectrum is 2.)

Thanks again for your awesome work!

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