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

Octal NUMBR works when negative, but not positive #57

Open
sjoqvist opened this issue Aug 10, 2019 · 1 comment
Open

Octal NUMBR works when negative, but not positive #57

sjoqvist opened this issue Aug 10, 2019 · 1 comment

Comments

@sjoqvist
Copy link

sjoqvist commented Aug 10, 2019

The following program returns -8.

HAI 1.2
  VISIBLE -010
KTHXBYE

But the following yields the error message test.lol:2: unknown token at: 010.

HAI 1.2
  VISIBLE 010
KTHXBYE

I would have expected octal input to work with neither or both.

@sjoqvist
Copy link
Author

A similar difference between negative and positive is the following. This program returns -0.10.

HAI 1.2
  VISIBLE -.1
KTHXBYE

But when made positive, you get the error message test.lol:2: unknown token at: .1.

HAI 1.2
  VISIBLE .1
KTHXBYE

Also worth noting is the following, which yields test.lol:2: expected floating point decimal value.

HAI 1.2
  VISIBLE -.
KTHXBYE

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