Bob Nystrom
850d6d1b5d
fix: raise precedence of is above equality operators in parser
...
The `is` operator was placed at `PREC_IS` which had lower precedence than `PREC_EQUALITY`, causing expressions like `true == 10 is Num` to parse incorrectly. Moved `PREC_IS` above `PREC_EQUALITY` in the precedence enum to give `is` higher binding power than `==` and `!=`. Added precedence tests in new `test/precedence.wren` file and removed TODO comments about precedence from `test/is/is.wren`.
2015-01-18 18:20:13 +00:00
..
2014-04-03 02:41:53 +00:00
2014-01-05 20:27:12 +00:00
2014-04-09 14:48:35 +00:00
2014-04-09 14:48:35 +00:00
2015-01-14 05:36:42 +00:00
2015-01-04 21:00:53 +00:00
2014-04-04 14:51:18 +00:00
2014-04-09 14:48:35 +00:00
2015-01-04 19:42:11 +00:00
2014-04-03 02:41:53 +00:00
2014-04-19 18:41:21 +00:00
2014-04-09 14:48:35 +00:00
2014-04-19 18:41:21 +00:00
2014-04-09 00:54:37 +00:00
2015-01-04 19:42:11 +00:00
2015-01-12 05:47:29 +00:00
2015-01-18 18:20:13 +00:00
2015-01-03 18:02:45 +00:00
2015-01-16 08:48:59 +00:00
2014-01-21 02:12:55 +00:00
2015-01-04 19:42:11 +00:00
2014-04-04 14:51:18 +00:00
2015-01-15 07:08:25 +00:00
2015-01-16 05:50:01 +00:00
2015-01-16 05:50:01 +00:00
2015-01-16 05:50:01 +00:00
2015-01-16 08:33:23 +00:00
2014-04-03 14:48:19 +00:00
2014-04-09 00:54:37 +00:00
2015-01-04 19:09:33 +00:00
2014-04-03 02:41:53 +00:00
2015-01-16 05:50:01 +00:00
2015-01-11 23:43:51 +00:00
2014-04-03 14:48:19 +00:00
2015-01-14 05:36:42 +00:00
2014-04-04 14:51:18 +00:00
2014-01-05 20:27:12 +00:00
2015-01-04 21:00:53 +00:00
2015-01-12 03:58:30 +00:00
2014-01-05 20:27:12 +00:00
2015-01-18 18:20:13 +00:00
2015-01-03 18:02:45 +00:00
2014-01-05 20:27:12 +00:00
2015-01-03 14:10:04 +00:00