-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathutil.h
More file actions
32 lines (29 loc) · 1000 Bytes
/
Copy pathutil.h
File metadata and controls
32 lines (29 loc) · 1000 Bytes
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
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct tokenType {
int tokenNumber;
char *tokenValue;
};
typedef struct nodeType {
struct tokenType token;
enum {terminal, nonterm} noderep;
struct nodeType *son;
struct nodeType *brother;
}Node;
enum nodeNumber {
ACTUAL_PARAM, ADD, ADD_ASSIGN, ARRAY_VAR, ASSIGN_OP,
BREAK_ST, CALL, CASE_EXP, CASE_LST, CASE_ST,
COMPOUND_ST, CONST_TYPE, CONTINUE_ST, DCL, DCL_ITEM,
DCL_LIST, DCL_SPEC, DEFAULT_ST, DIV, DIV_ASSIGN,
EQ, ERROR, EXP_ST, FORMAL_PARA, FOR_DCL,
FOR_EXP, FOR_INC, FOR_ST, FUNC_DEF, FUNC_HEAD,
GE, GT, IDENT, IF_ELSE_ST, IF_ST,
INDEX, INT_TYPE, LE, LOGICAL_AND, LOGICAL_NOT,
LOGICAL_OR, LT, MOD_ASSIGN, MUL, MUL_ASSIGN,
NE, NUMBER, PARAM_DCL, POST_DEC, POST_INC,
PRE_DEC, PRE_INC, PROGRAM, MOD, RETURN_ST,
SIMPLE_VAR, STAT_LIST, SUB, SUB_ASSIGN, SWITCH_ST,
UNARY_MINUS, VOID_TYPE, WHILE_ST
};
FILE* file;