aboutsummaryrefslogtreecommitdiff
path: root/frontend/lexer.ll
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-03 10:23:50 +0200
committerEugen Wissner <belka@caraus.de>2026-07-03 10:23:50 +0200
commitd9cd03ffeb13a5c30d8337ba27f15e1ba2959e4d (patch)
tree511ef9fbbfd953b0819c799b2ba866be8ff1cfd3 /frontend/lexer.ll
parent4ad6052aa2816f8296e62569272e99fc0d2fd3c1 (diff)
downloadelna-d9cd03ffeb13a5c30d8337ba27f15e1ba2959e4d.tar.gz
Move the documentation from the old branch
Diffstat (limited to 'frontend/lexer.ll')
-rw-r--r--frontend/lexer.ll4
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)