From d9cd03ffeb13a5c30d8337ba27f15e1ba2959e4d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 3 Jul 2026 10:23:50 +0200 Subject: Move the documentation from the old branch --- frontend/lexer.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/lexer.ll') diff --git a/frontend/lexer.ll b/frontend/lexer.ll index 7c18b32..b48b4a6 100644 --- a/frontend/lexer.ll +++ b/frontend/lexer.ll @@ -175,7 +175,7 @@ of { return yy::parser::make_INTEGER(result, this->location); } } -0x{HIGIT}+ { +0[x|X]{HIGIT}+ { unsigned long result = strtoul(yytext, NULL, 16); if (errno == ERANGE) @@ -187,7 +187,7 @@ of { return yy::parser::make_WORD(result, this->location); } } -0b{BIGIT}+ { +0[b|B]{BIGIT}+ { unsigned long result = strtoul(yytext, NULL, 2); if (errno == ERANGE) -- cgit v1.2.3