Kyle Marek-Spartz
4f4251882d
feat: enable custom bitwise operators | and & in wren compiler and add test
...
Add INFIX_OPERATOR entries for TOKEN_PIPE and TOKEN_AMP with PREC_BITWISE precedence in the compiler's grammar rules, replacing the previous UNUSED entries. This allows user-defined classes to implement custom `|` and `&` operator methods.
Include a new test file `test/custom_operators/bitwise.wren` that defines Amp and Pipe classes with their respective operator methods to validate the feature works correctly.
2014-02-16 18:01:40 +00:00
..
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-06 16:01:04 +00:00
2014-02-15 04:15:49 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-02-15 19:36:01 +00:00
2014-02-13 16:38:44 +00:00
2014-02-16 18:01:40 +00:00
2014-02-14 15:16:56 +00:00
2014-01-19 21:01:51 +00:00
2014-02-13 16:38:44 +00:00
2014-02-15 19:36:01 +00:00
2014-01-21 02:12:55 +00:00
2014-02-13 01:33:35 +00:00
2014-01-18 01:29:10 +00:00
2014-01-05 20:27:12 +00:00
2014-01-21 15:52:03 +00:00
2014-01-15 15:59:10 +00:00
2014-02-16 17:20:31 +00:00
2014-01-21 02:12:55 +00:00
2014-01-05 20:27:12 +00:00
2014-01-21 15:44:11 +00:00
2014-01-28 23:31:11 +00:00
2014-02-16 17:20:31 +00:00
2014-01-13 03:37:11 +00:00
2014-01-05 20:27:12 +00:00
2014-01-19 21:01:51 +00:00
2014-02-13 16:38:44 +00:00
2014-01-18 01:29:10 +00:00
2014-02-14 14:37:37 +00:00
2014-01-05 20:27:12 +00:00
2014-02-13 16:38:44 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00