Make functions be able to call themselves
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-06-08 16:02:21 +02:00
parent 7d75131822
commit 7ed53193de
6 changed files with 49 additions and 29 deletions

View File

@@ -344,6 +344,7 @@ ParsedExpression *Parser::ParseFunctionCallExpression(ParsedExpression* function
return new BadExpression(peeked->GetStartPosition(), peeked->GetLength());
}
}
this -> Next();
auto start = functionExpression->GetStartPosition();
return new FunctionCallExpression(functionExpression, parameters, start, peeked->GetEndPosition() - start);
}