squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

Any reason for not having "&= |= <<= >>= >>>=" ?

Open mingodad opened this issue 8 years ago • 4 comments

Hello ! Looking at the lexer I can see that there is tokens for BIT_AND_EQ, ... but they are commented out and no code on the compiler to deal with then. Any reason for that ? Cheers !

mingodad avatar May 11 '16 14:05 mingodad

they didn't seem necessary.

albertodemichelis avatar May 11 '16 17:05 albertodemichelis

I mainly noticed it when trying to run this through squilu/squirrel: https://github.com/Spark-Innovations/SC4/blob/master/sc4-web/nacl.js

mingodad avatar May 11 '16 18:05 mingodad

Huh. I think this will be a surprise to anyone who uses squirrel eventually, since a large part of it's value is in adding C-like syntax where it's easy and doesn't conflict. Adding enough C-like syntax to satisfy @mingodad is probably not easy, but this one thing is easy. (But I don't see anything commented out and half-finished).

zeromus avatar May 12 '16 16:05 zeromus

I had forgotten all about this thread, and it was a surprise to me today. Now this really annoys me. I will forge ahead but if this hits me many more times, I will have to try implementing it.

zeromus avatar Jun 19 '16 17:06 zeromus