From 74a3914fdfa0f48544cc597f5b72aa0c1e6019e9 Mon Sep 17 00:00:00 2001 From: Sofia Date: Thu, 2 Apr 2026 16:18:22 +0300 Subject: [PATCH] Actually parse int expression from the string --- src/parsing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing.cpp b/src/parsing.cpp index 04794bf..5fda559 100644 --- a/src/parsing.cpp +++ b/src/parsing.cpp @@ -25,7 +25,7 @@ namespace parsing { if (token.type == token::Type::LiteralInt) { stream.m_position = inner.m_position; - auto expr = new AST::IntLiteralExpression{ 5 }; + auto expr = new AST::IntLiteralExpression{ std::stoi(token.content) }; return new std::unique_ptr{ expr }; } else {