Retoor software development Projects Research SearchXNG
Register Sign In

10 lines
158 B
Plaintext
Raw Normal View History

feat: add bitwise NOT operator (~) with token, parser, and native implementation Add TOKEN_TILDE token type and lexer support for the '~' character in the compiler. Implement the bitwise NOT operation as a native method on the Num class, operating on 32-bit unsigned integers. Include a new OPERATOR macro for prefix/infix operator grammar rules and add comprehensive test cases covering positive, negative, floating-point, and boundary values.
2013-12-05 07:09:31 +01:00
var a = "a"
var b = "b"
var c = "c"
// Assignment is right-associative.
a = b = c
refactor: convert IO from singleton instance to static class with metaclass native methods Replace the global `io` singleton object with a static `IO` class, moving the `write` native from the instance to the metaclass. Update all benchmark, example, and test files to use `IO.write()` instead of `io.write()`.
2013-12-22 04:25:09 +01:00
IO.write(a) // expect: c
IO.write(b) // expect: c
IO.write(c) // expect: c
Reference in New Issue Copy Permalink
b72a42eedd
wren/test/assignment/associativity.wren
Response time: 29ms
Mail Licenses API