lang: ast: implement for-loop parsing
This commit is contained in:
@@ -24,6 +24,7 @@ extern struct ast_node_type cond_group_node_ops;
|
||||
extern struct ast_node_type cond_node_ops;
|
||||
extern struct ast_node_type match_node_ops;
|
||||
extern struct ast_node_type while_loop_node_ops;
|
||||
extern struct ast_node_type for_loop_node_ops;
|
||||
extern struct ast_node_type return_node_ops;
|
||||
extern struct ast_node_type discard_node_ops;
|
||||
|
||||
@@ -47,6 +48,7 @@ static const struct ast_node_type *node_ops[] = {
|
||||
[IVY_AST_COND] = &cond_node_ops,
|
||||
[IVY_AST_MATCH] = &match_node_ops,
|
||||
[IVY_AST_WHILE_LOOP] = &while_loop_node_ops,
|
||||
[IVY_AST_FOR_LOOP] = &for_loop_node_ops,
|
||||
[IVY_AST_RETURN] = &return_node_ops,
|
||||
[IVY_AST_DISCARD] = &discard_node_ops,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user