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