aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-05-31 22:54:26 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-05-31 22:54:26 +0200
commit5749be69125dc87ac50742295272a7e21f4f472e (patch)
treecf0aa4776eda997f94ef35e06e41f16678aedebd /src/main.zig
parent590a76edb6a88f754a43e96f16f2fc73845238b5 (diff)
downloadhuginn-5749be69125dc87ac50742295272a7e21f4f472e.tar.gz
codegen integer literals correctly
This was not as easy as one would expect ☠️
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 8f81f1d..ef90c79 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -32,7 +32,7 @@ pub fn main() !void {
// try stdout.print("{s}\n", .{line.items});
// }
- const source = "420 + 1337 + 42";
+ const source = "17216961135462248174 + 4095 + 4294967295 + 2147483647";
// var lexer = Lexer{ .source = source };
// while (true) {
// const token = lexer.next().?;