Multiline statement support
rokicki
Posts: 1,000
The current IDE does support multiline statements. Just use a multiline comment to connect lines:
Is this "feature" going to continue to work with new versions of the IDE? Should I replicate this
behavior in my Spin compiler?
There are some other interesting oddities, for instance
uses the "+=" operator, and
is also valid (a space is not needed after numeric literals).
I'd be interested if these would be classified as bugs, or as just the way the parser works.
a := b1 + (b2 << 1) + (b3 << 2) + (b4 << 3) + { } (b5 << 4) + (b6 << 5) + (b7 << 6)
Is this "feature" going to continue to work with new versions of the IDE? Should I replicate this
behavior in my Spin compiler?
There are some other interesting oddities, for instance
a + = 3
uses the "+=" operator, and
a := 1and 5
is also valid (a space is not needed after numeric literals).
I'd be interested if these would be classified as bugs, or as just the way the parser works.
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
always a CON if there is no other directive at the top.
I have to say I am impressed with the robustness of the IDE/compiler. Other than the few bugs I've posted in
the sticky threads at the top, it's pretty much handled everything I can throw at it (and I've been intentionally
pushing its limits and trying to break it).