Gavin Schulz
b2c6dfce8d
feat: add hexadecimal literal support to lexer and compiler
...
Add TOKEN_HEXADECIMAL token type and isHexDigit helper function to lexer.
Modify readNumber to detect 'x' prefix after '0' and lex hex digits.
Implement emitNumericConstant for hex values in compiler.
Add test file test/number/hex_literals.wren verifying basic hex parsing,
arithmetic, type checks, and negative hex literals.
2015-01-25 06:07:23 +00:00
..
2015-01-09 07:06:50 +00:00
2014-02-24 15:27:43 +00:00
2014-02-24 15:27:43 +00:00
2014-01-05 20:27:12 +00:00
2014-02-24 15:27:43 +00:00
2014-02-24 15:27:43 +00:00
2015-01-09 07:06:50 +00:00
2014-01-05 20:27:12 +00:00
2013-11-27 06:52:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2014-01-05 20:27:12 +00:00
2015-01-09 07:06:50 +00:00
2014-01-21 15:44:11 +00:00
2014-01-21 15:44:11 +00:00
2015-01-25 06:07:23 +00:00
2014-01-08 15:47:14 +00:00
2014-01-21 15:44:11 +00:00
2014-01-21 15:44:11 +00:00
2014-01-05 20:27:12 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2014-01-02 15:32:00 +00:00
2015-01-21 20:49:43 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2015-01-16 05:50:01 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2015-01-09 07:06:50 +00:00
2015-01-09 07:06:50 +00:00
2014-01-05 20:27:12 +00:00