Added more AST stuff.

This commit is contained in:
Jacob Signorovitch 2024-10-25 11:23:03 -04:00
parent ca9d2aabe4
commit 68fc644ea6

View File

@ -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