LLJS icon indicating copy to clipboard operation
LLJS copied to clipboard

bug in order of operations parsing C casts

Open TooTallNate opened this issue 11 years ago • 0 comments

I'm trying to port some C code to LLJS using a simple string replacement script. In the C code, I have some logic like:

u8 i = (u8) ~(u8) (1 << 3);

but when attempting to compile that with LLJS compiler, I get an error:

t.js:4:18: error: Unexpected token ~
    let u8 i = (u8) ~(u8) (1 << 3);
                    ^

Seems it doesn't like the ~ char.

TooTallNate avatar May 21 '13 20:05 TooTallNate