lang: ast: initial implementation of msg handler and selector parsing

This commit is contained in:
2024-11-26 13:08:39 +00:00
parent 27792c43b3
commit 5f5efd8d35
9 changed files with 312 additions and 24 deletions

View File

@@ -15,6 +15,7 @@ enum ivy_ast_node_type {
IVY_AST_MSG,
IVY_AST_CLASS,
IVY_AST_MSGH,
IVY_AST_SELECTOR,
IVY_AST_PROPERTY,
IVY_AST_LAMBDA,
IVY_AST_UNIT_PACKAGE,
@@ -92,7 +93,9 @@ struct ivy_ast_selector_node {
/* NULL for keyword messages. */
struct ivy_token *n_msg_name;
/* queue of struct ivy_token; empty for unary messages. */
b_queue n_args;
b_queue n_arg_labels;
/* queue of struct ivy_token; empty for unary messages. */
b_queue n_arg_names;
};
struct ivy_ast_msg_node {