Files
wren/test
Evan Shaw 75d28c083c Don't treat negative numbers as literals
Fixes #93.

Previously, "1 -1" was lexed as two number tokens: a positive literal and
a negative literal. This caused problems when it came to parsing.

Now the '-' and the second number are separate tokens.

Note this is a breaking change, since `-16.sqrt` is now parsed as `-(16.sqrt)`,
as opposed to `(-16).sqrt`.

There is a small bit of overhead to doing it this way, but it might be possible
to optimize that out in the compiler at some point in the future.
2015-01-09 20:17:40 +13:00
..
2014-01-05 12:27:12 -08:00
2015-01-01 10:40:14 -08:00
2014-04-19 11:41:21 -07:00
2014-04-19 11:41:21 -07:00
2015-01-03 10:02:45 -08:00
2014-04-08 07:31:23 -07:00
2014-01-20 18:12:55 -08:00
2014-01-28 15:31:11 -08:00
2014-04-03 07:48:19 -07:00
2015-01-04 20:09:33 +01:00
2014-04-08 21:17:49 -07:00
2014-04-19 11:51:36 -07:00
2014-04-03 07:48:19 -07:00
2014-01-05 12:27:12 -08:00
2014-01-05 12:27:12 -08:00
2014-01-05 12:27:12 -08:00
2015-01-03 10:02:45 -08:00