repo.or.cz
/
toypasc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Concertando as funções lookup e destroy
[toypasc.git]
/
ast.h
blob
6973fda77f9d0a53166d57e58c6563f0cf63169a
1
#ifndef AST_H
2
#define AST_H
3
4
#include
"symbol_table.h"
5
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
;
14
15
AstNode
*
ast_node_new
(
int
kind
,
int
type
,
int
linenum
,
Symbol
*
symbol
);
16
void
ast_node_destroy
(
AstNode
*
node
);
17
18
#endif
// AST_H