-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.c
68 lines (66 loc) · 1.92 KB
/
init.c
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
65
66
67
68
//
// Created by sapbh on 2/2/2018.
//
#include "global.h"
struct entry keywords[] =
{
"if", IF,
"else", ELSE,
"abstract", ABSTRACT,
"assert", ASSERT,
"boolean", BOOLEAN,
"break", BREAK,
"byte", BYTE,
"case", CASE,
"catch", CATCH,
"char", CHAR,
"class", CLASS,
"const", CONST,
"continue", CONTINUE,
"default", DEFAULT,
"do", DO,
"double", DOUBLE,
"enum", ENUM,
"extends", EXTENDS,
"final", FINAL,
"finally", FINALLY,
"float", FLOAT,
"for", FOR,
"goto", GOTO,
"implements", IMPLEMENTS,
"import", IMPORT,
"instanceof", INSTANCEOF,
"int", INT,
"interface", INTERFACE,
"long", LONG,
"native", NATIVE,
"new", NEW,
"package", PACKAGE,
"private", PRIVATE,
"protected", PROTECTED,
"public", PUBLIC,
"arg", ARG,
"return", RETURN,
"short", SHORT,
"static", STATIC,
"strictfp", STRICTFP,
"super", SUPER,
"switch", SWITCH,
"this", THIS,
"void", VOID,
"while", WHILE,
"try", TRY,
"throw", THROW, "done", DONE,
"id", ID,
"int8", INT8,
"int16", INT16,
"int32", INT32,
0, 0,
};
void init() {
//printf("inside insert\n");
struct entry *p;
for (p = keywords; p->token; p++) {
insert(p->lexptr, p->token);
}
}