From 68fc644ea61ef37a7327622b01ec4bb1152bb0cc Mon Sep 17 00:00:00 2001 From: Jacob Signorovitch Date: Fri, 25 Oct 2024 11:23:03 -0400 Subject: [PATCH] Added more AST stuff. --- src/include/ast.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/include/ast.h b/src/include/ast.h index ba5ea16..28a1ad5 100644 --- a/src/include/ast.h +++ b/src/include/ast.h @@ -1,8 +1,23 @@ #ifndef AST_H #define AST_H -typedef struct { +typedef enum { + AST_TYPE_NUM, + AST_TYPE,CALL +} ASTType; +typedef struct { + ASTType type; + void* data; } AST; +typedef struct { + int val; +} ASTTypeNum; + +typedef struct { + char* to; + char** args; +} ASTTypeCall; + #endif