Implementando a symbol_table
[toypasc.git] / ast.h
blob6973fda77f9d0a53166d57e58c6563f0cf63169a
1 #ifndef AST_H
2 #define AST_H
4 #include "symbol_table.h"
6 typedef struct _AstNode {
7 int kind;
8 int type;
9 int linenum;
10 Symbol *symbol;
11 struct _AstNode* children[3];
12 struct _AstNode* next;
13 } AstNode;
15 AstNode *ast_node_new(int kind, int type, int linenum, Symbol *symbol);
16 void ast_node_destroy(AstNode *node);
18 #endif // AST_H