added parsing of function call

This commit is contained in:
Karma Riuk
2025-07-15 19:42:43 +02:00
parent 59bff59cf7
commit a016bbaa5e
6 changed files with 168 additions and 1 deletions

View File

@@ -18,4 +18,15 @@ namespace ast {
std::string str() const override;
~function_literal();
};
struct function_call : expression {
function_call(token::token, expression*);
token::token token;
expression* target;
std::vector<expression*> parameters;
std::string token_literal() const override;
std::string str() const override;
~function_call();
};
} // namespace ast