Bob Nystrom
dbd75f8905
feat: allow call and unary expressions as map keys in compiler
...
Change the map key parsing precedence from PREC_PRIMARY to PREC_UNARY in
wren_compiler.c, enabling method calls (e.g., name.count), subscript
access (name[0]), and unary operators (-1, ~3) as valid map keys.
Add two test files: precedence.wren verifying the new key types work
correctly, and bad_key_precedence.wren confirming that binary operators
like addition still produce a parse error.
2015-12-23 00:00:50 +00:00
..
2015-09-15 14:46:09 +00:00
2015-11-11 15:55:48 +00:00
2015-09-15 14:46:09 +00:00
2015-10-08 15:06:29 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-11-11 15:55:48 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-26 14:17:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-11-11 15:55:48 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-12-23 00:00:50 +00:00
2015-11-11 15:55:48 +00:00
2015-12-08 15:49:37 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-11-11 15:55:48 +00:00
2015-09-19 22:19:41 +00:00
2015-09-15 14:46:09 +00:00
2015-10-05 14:44:51 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-10-29 14:38:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-10-29 14:38:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00