lang: ast: fix incorrect return types; add function to determine expression tokens
This commit is contained in:
@@ -20,6 +20,7 @@ enum ivy_ast_node_type {
|
||||
IVY_AST_LAMBDA,
|
||||
IVY_AST_UNIT_PACKAGE,
|
||||
IVY_AST_UNIT_IMPORT,
|
||||
IVY_AST_EXPR,
|
||||
IVY_AST_INT,
|
||||
IVY_AST_DOUBLE,
|
||||
IVY_AST_STRING,
|
||||
@@ -162,6 +163,11 @@ struct ivy_ast_unit_import_node {
|
||||
b_queue n_ident;
|
||||
};
|
||||
|
||||
struct ivy_ast_expr_node {
|
||||
struct ivy_ast_node n_base;
|
||||
struct ivy_ast_node *n_child;
|
||||
};
|
||||
|
||||
struct ivy_ast_int_node {
|
||||
struct ivy_ast_node n_base;
|
||||
/* lex token of type IVY_TOK_INT. */
|
||||
|
||||
Reference in New Issue
Block a user