You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, yes. The bitwise operators haven't been implemented yet. :)
If you feel like hacking some C code, this might be an easy bug to get your feet wet. & and | are already being lexed, so all you need to do is add grammar rules for them in the rule table in wren_compiler.c:2004. They'll just use INFIX_OPERATOR like the other normal infix operators do, with PREC_BITWISE.
We should implement primitive & and | operators on numbers and bools too, but that can be done separately.
I cannot create custom operators for
|
and&
:I may add tests for each of the possible custom operators.
The text was updated successfully, but these errors were encountered: