diff options
Diffstat (limited to 'frontend/lexer.ll')
| -rw-r--r-- | frontend/lexer.ll | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
