Evan Shaw
ffcdd8ae9e
fix: correct operator precedence for % token from PREC_TERM to PREC_FACTOR
...
The modulo operator was incorrectly assigned PREC_TERM precedence, making it
evaluate at the same level as + and -. This caused expressions like "13 + 1 % 7"
to parse as "(13 + 1) % 7" instead of the correct "13 + (1 % 7)".
Changed the grammar rule for TOKEN_PERCENT to use PREC_FACTOR, matching the
precedence of * and / operators. Added a precedence test case in mod.wren to
verify the fix.
2015-01-21 20:49:43 +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-21 02:25:54 +00:00
2014-01-21 02:12:55 +00:00
2015-01-21 02:25:54 +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-21 20:49:43 +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-17 07:20:56 +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