Commit Graph

1 Commits

Author SHA1 Message Date
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