bug in order of operations parsing C casts #30

TooTallNate opened this Issue May 21, 2013 · 0 comments


None yet
1 participant

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment