Added more AST stuff.
This commit is contained in:
parent
ca9d2aabe4
commit
68fc644ea6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user