*** empty log message ***

This commit is contained in:
hyung-hwan 2006-01-02 16:38:23 +00:00
parent e8e8a80522
commit 454941c287

32
ase/awk/tree.h Normal file
View File

@ -0,0 +1,32 @@
enum TokenType
{
IF, END, ID, NUM, READ, WrITE, UNTIL, ....
}
enum NodeKind { statement, expression };
enum StatKind { if, repeat, assign, read, write };
enum ExpKind { op, const, id };
enum ExpType { void, integer, boolean };
struct treenode
{
treenode* child[3]; //
treenode* sibling; // <---- next statement...
int lineno;
NodeKind node_kind;
union {
statkind s;
expkind e;
} kind;
union {
TokenType Op;
int val;
char* name;
} attr;
exptype type; <- for type checking...
};