Retoor software development Projects Research SearchXNG
Register Sign In

2 lines
66 B
Plaintext
Raw Normal View History

feat: add hexadecimal number literal parsing to wren compiler Remove the TOKEN_HEXADECIMAL token type and isHexDigit helper, replacing them with a readHexDigit function and readHexNumber parser that directly converts hex literals to numeric values during lexing. Add a `number` field to the Parser struct to hold the parsed value, and include a test for invalid hex literal error handling.
2015-01-25 22:02:44 +01:00
var x = 2xFF // expect error: Error at 'xFF': Expect end of file.
Reference in New Issue Copy Permalink
fdcd1fdf03
wren/test/number/invalid_hex_literal.wren
Response time: 70ms
Mail Licenses API