mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
functions arguments and parameters are separated now
This commit is contained in:
parent
f7e985a448
commit
a11ddbd25f
8 changed files with 49 additions and 98 deletions
|
|
@ -232,12 +232,6 @@ struct ParametrizedTypeclass;
|
|||
|
||||
struct ParametrizedType;
|
||||
|
||||
//
|
||||
|
||||
using FunctionArgument = std::variant<
|
||||
SubExpressionToken,
|
||||
std::unique_ptr<TypeExpression>>;
|
||||
|
||||
// Comments [IGNORE] -----------------
|
||||
// Identifiers, constants, etc. -----------------
|
||||
|
||||
|
|
@ -468,7 +462,8 @@ struct FunctionCallExpression {
|
|||
std::optional<std::variant<std::unique_ptr<SubExpressionToken>,
|
||||
std::unique_ptr<TypeExpression>>> prefix;
|
||||
ExtendedName name;
|
||||
std::vector<FunctionArgument> arguments;
|
||||
std::vector<std::unique_ptr<TypeExpression>> parameters;
|
||||
std::vector<SubExpressionToken> arguments;
|
||||
};
|
||||
|
||||
struct TupleExpression {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue