diff options
[IPL/T] Implemented defvar
1 files changed, 4 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp | 4 |
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 319f408..3efc904 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -6,6 +6,10 @@ int main() { LLVMVisitor visitor("testout.ll"); std::deque<Value*> nodes = { + new Funcall("defvar", { + new Name("myvar"), + new Funcall("+", { new Funcall("-", { new Integer(8), new Integer(4) }), new Integer(19) }) + }), new Funcall("+", { new Float(1), new Funcall("-", { new Float(5), new Float(10) }), |
