lang: ast: implement parsing of atoms

This commit is contained in:
2024-12-06 13:46:41 +00:00
parent 7ba0a05332
commit 2bd3e96427
4 changed files with 29 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ extern struct ast_node_type op_node_ops;
extern struct ast_node_type ident_node_ops;
extern struct ast_node_type int_node_ops;
extern struct ast_node_type double_node_ops;
extern struct ast_node_type atom_node_ops;
extern struct ast_node_type string_node_ops;
extern struct ast_node_type cascade_node_ops;
extern struct ast_node_type cond_group_node_ops;
@@ -42,6 +43,7 @@ static const struct ast_node_type *node_ops[] = {
[IVY_AST_IDENT] = &ident_node_ops,
[IVY_AST_INT] = &int_node_ops,
[IVY_AST_DOUBLE] = &double_node_ops,
[IVY_AST_ATOM] = &atom_node_ops,
[IVY_AST_STRING] = &string_node_ops,
[IVY_AST_CASCADE] = &cascade_node_ops,
[IVY_AST_COND_GROUP] = &cond_group_node_ops,