RPGHacker / asar

(Now) official repository of the SNES assembler Asar, originally created by Alcaro
Other
195 stars 42 forks source link

accept label before assert #304

Open Alcaro opened 5 months ago

Alcaro commented 5 months ago
[01:53:02]  <Sir Walrus> !rb as2
ee: assert ee == $8000
[01:53:02]  <randombot999#8226> Errors occurred while assembling.
<input>:2: error: (Elabel_before_if): Labels are not allowed before "assert" commands. Suggestion: move the label to a separate line.
    in block: [ee: assert ee == $8000]
[01:53:04]  <Sir Walrus> !rb as2
ee: : assert ee == $8000
[01:53:04]  <randombot999#8226> (no output)

I can see some logic behind banning labels before if (they're hard to parse in if false), but assert doesn't need any particular parsing.