From 06006fc601ab5f7bffa095b7279a61070e38ba54 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 19 Jan 2023 11:27:31 +0200 Subject: [IPL/T] Implemented Float type and added basic function structure as well as added addition function for two arguments --- Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp index 738f18b..088f4d0 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -4,7 +4,7 @@ int main() { LLVMVisitor visitor("testout.ll"); - std::deque nodes = { new Integer(123) }; + std::deque nodes = { new BuiltInFunction("+", { new Integer(123), new Integer(567) }) }; for (Value* n : nodes) { n->Visit(visitor); } -- cgit v1.3.1-23-gd82d