Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / main.cpp
diff options
context:
space:
mode:
Commit06006fc601ab5f7bffa095b7279a61070e38ba54 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-01-19 11:27:31 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-01-19 11:27:31 +0200
Filesac858f357318ac2d588cdded32dc995da9fe9d3e /Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
uni-projects-06006fc601ab5f7bffa095b7279a61070e38ba54.tar
uni-projects-06006fc601ab5f7bffa095b7279a61070e38ba54.tar.gz
uni-projects-06006fc601ab5f7bffa095b7279a61070e38ba54.zip
Parent8f41c57ff12fa72693016b75fec63bb86ae6560f (diff)
[IPL/T] Implemented Float type and added basic function structure as well as added addition function for two arguments
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp2
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<Value*> nodes = { new Integer(123) };
+ std::deque<Value*> nodes = { new BuiltInFunction("+", { new Integer(123), new Integer(567) }) };
for (Value* n : nodes) {
n->Visit(visitor);
}