-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow.h.orig
64 lines (57 loc) · 1.44 KB
/
show.h.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _SHOW_
#define _SHOW_
#include "structures.h"
static const char *NODE_STRING[] = {"Program",
"VarDecl",
"MethodDecl",
"MethodParams",
"MethodBody",
"ParamDeclaration",
"CompoundStat",
"IfElse",
"Print",
"Return",
"Store",
"Mul",
"Div",
"Mod",
"Not",
"Minus",
"Plus",
"Length",
"LoadArray",
"Call",
"NewInt",
"NewBool",
"ParseArgs",
"While",
"StoreArray",
"IntLit",
<<<<<<< HEAD
"BoolLit",
"NODE_ID"
};
=======
"BoolLit"
};
static const char* NODE_TYPE_NAMES[] = {
"Void",
"Int",
"Bool",
"IntArray",
"BoolArray",
"StringArray",
"Id",
"IntLit",
"BoolLit",
"BoolArray",
};
>>>>>>> 5b10ee939b5ddec4bc846746a619de3e17fda5ed
void printAST(Node* AST);
void printIDs(listID* ids,int tabs, int n_type, int type);
/*void show_expression(is_expression*);
void show_infix_expression(is_infix_expression*);
void show_unary_expression(is_unary_expression*);
void show_operator(is_oper);
void printSymbols(ClassTable* table);*/
#endif