xp-framework/xp-language — pull request #12 by thekid (2012-04-22 11:38:40+00:00)
Title: Numbers

This pull request includes various improvements to number literals:

* Support for octal numbers (prefixed by `0`, e.g. `0777`).
* Support for exponent notation (e, e.g. `6e4` or `1.5e-2`)
* It also verifies PHP's odd behaviour with `0x0+2 == 4`(**!!!**) doesn't appear and that malformed literal throw exceptions (inspired by [the "a fractal of bad design" article](http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/#numbers)).