summaryrefslogtreecommitdiff
path: root/src/sys/include/np/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/np/ast.h')
-rw-r--r--src/sys/include/np/ast.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/sys/include/np/ast.h b/src/sys/include/np/ast.h
index 8e516d7..9232226 100644
--- a/src/sys/include/np/ast.h
+++ b/src/sys/include/np/ast.h
@@ -52,16 +52,26 @@ typedef enum {
} ast_itype_t;
/*
+ * AST node type
+ */
+typedef enum {
+ AT_BAD_OBJTYPE, /* Bad */
+ AST_PROC, /* Procedure */
+} ast_type_t;
+
+/*
* Represents an AST node
*
* @ident: Identifier
- * @token: Token type
+ * @num_type: Integer type
+ * @type: Object type
* @left: Left node
* @right: Right node
*/
struct ast_node {
char *ident;
- tt_t token;
+ ast_itype_t num_type;
+ ast_type_t type;
struct ast_node *left;
struct ast_node *right;
};