From a638fad0109c6fb98d4c361d73915e3ac113f794 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Fri, 11 Feb 2022 16:32:42 +0100
Subject: [PATCH] WIP: Include the parser for expressions

---
 src/Lib/Script/Ast/IrExpression.cc        | 5 +++--
 src/Lib/Script/Ast/Parser/IrExpression.hh | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/Lib/Script/Ast/IrExpression.cc b/src/Lib/Script/Ast/IrExpression.cc
index 967812df..9cc1c7a5 100644
--- a/src/Lib/Script/Ast/IrExpression.cc
+++ b/src/Lib/Script/Ast/IrExpression.cc
@@ -2,6 +2,7 @@
 #include "IrElement.hh"
 #include "IrVariable.hh"
 #include "IrType.hh"
+#include "Lib/Script/FrontEnd/Lexer.hh"
 
 #include <cassert>
 
@@ -42,9 +43,9 @@ IrExpression::toString() const noexcept
 }
 
 void
-IrExpression::parse(std::vector<Token> *)
+IrExpression::parse(std::vector<Token> *tokens)
 {
-    throw std::logic_error("Not implemented");
+#include "Parser/IrExpression.hh"
 }
 
 void IrExpression::assertType(Type t) const
diff --git a/src/Lib/Script/Ast/Parser/IrExpression.hh b/src/Lib/Script/Ast/Parser/IrExpression.hh
index 38f97ece..7abd0495 100644
--- a/src/Lib/Script/Ast/Parser/IrExpression.hh
+++ b/src/Lib/Script/Ast/Parser/IrExpression.hh
@@ -1 +1,3 @@
 /* In: std::vector<Token>* tokens */
+
+throw std::logic_error("Parser/IrExpression: Not implemented");
\ No newline at end of file
-- 
GitLab