diff --git a/src/astgen.zig b/src/astgen.zig index 299f3e75dca79bf8af7d13768e1ea39a9d8086eb..33ecfc190775d1402a23abc85f69c0bbb539975e 100644 --- a/src/astgen.zig +++ b/src/astgen.zig @@ -223,7 +223,7 @@ const Parser = struct { if (temp.len == 0 and self.nextIs(.word)) { const next_word = self.eat(.word); if (extras.matchesAll(u8, next_word, std.ascii.isDigit)) { - ret = ret ++ &[_]Arg{.{ .int = std.fmt.parseUnsigned(u64, next_word, 10) catch unreachable }}; + ret = ret ++ &[_]Arg{.{ .int = extras.parseDigits(u64, next_word, 10) catch unreachable }}; continue; } temp = temp ++ &[_]string{next_word};