-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.h
More file actions
30 lines (25 loc) · 785 Bytes
/
error.h
File metadata and controls
30 lines (25 loc) · 785 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
#define E_END_FILE 1
#define E_TOO_LONG 2
#define E_IN_NOTE 3
#define E_NO_EQUAL 4
#define E_IN_CHAR 5
#define E_NO_SIN_QUOT 6
#define E_IN_STR 7
#define E_NO_DOUB_QUOT 8
#define E_IN_LEXER 9
#define E_ILL_CHAR 10
#define E_MISS_TOKEN 11
#define E_NOT_THIS 12
#define E_REDEF 13
#define E_UNDEF 14
#define E_INEF_PARA 15
#define E_SUR_PARA 16
#define E_UN_MATCH 17 //类型不匹配,用于int char void之间不匹配的错误
#define E_VAL_VAR 18 //试图修改常量的值
#define E_RET 19 //返回值类型不匹配
#define E_PARA_LSIT 20//与形参表类型不匹配
#define E_NO_RET 21 //缺少return语句
#define E_OUT_BOUND 22//数组越界检查
#define E_MAIN 23 //主函数声明不正确
void reportError(int ERROR_NUM);
void skip(char * untilToken, int size);