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

Else statement syntax unclear #86

Open
micheldebree opened this issue Jan 13, 2023 · 0 comments
Open

Else statement syntax unclear #86

micheldebree opened this issue Jan 13, 2023 · 0 comments

Comments

@micheldebree
Copy link

If I don't use the right syntax, I get a cryptic error. There is no example on the site of the right syntax.

Works:

!if (debugging) {
  lda #0
} else {
  lda #2
}

Fails:

!if (debugging) {
  lda #0
} 
else {
  lda #2 ; line 76
}

Error test.asm|76 col 7| error: Syntax error: Expected ":" but "#" found.

I would expect either for both statements to work, or have a clear message about what exactly I am doing wrong.

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