Skip to content

Loading…

bug in order of operations parsing C casts #30

Open
TooTallNate opened this Issue · 0 comments

1 participant

@TooTallNate

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
Something went wrong with that request. Please try again.