lang: ast: implement parsing of true/false/null keyword constants

This commit is contained in:
2025-09-08 15:56:03 +01:00
parent bf250179da
commit 8ab377b3ab
5 changed files with 46 additions and 0 deletions

19
lang/ast/const.c Normal file
View File

@@ -0,0 +1,19 @@
#include "ctx.h"
#include "node.h"
#include <blue/object/string.h>
struct ast_node_type c_true_node_ops = {
.n_state_size = sizeof(struct parser_state),
.n_node_size = sizeof(struct ivy_ast_node),
};
struct ast_node_type c_false_node_ops = {
.n_state_size = sizeof(struct parser_state),
.n_node_size = sizeof(struct ivy_ast_node),
};
struct ast_node_type c_null_node_ops = {
.n_state_size = sizeof(struct parser_state),
.n_node_size = sizeof(struct ivy_ast_node),
};