diff --git a/src/Lib/Script/Ast/IrExpression.cc b/src/Lib/Script/Ast/IrExpression.cc index 967812df4b06e43f2a40dde55509e22ac217f5a1..9cc1c7a58da4078d1c2086c7b741d181c7a13210 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 38f97ece30ce84d8ef2d6bbfac572dd8c6cfde7b..7abd049517523366d1ae87639efb4bc20a3467ea 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