-
Notifications
You must be signed in to change notification settings - Fork 1
/
reserved_words.json
50 lines (44 loc) · 1.08 KB
/
reserved_words.json
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
{
"reseverd_words" : {
"if" : "if",
"begin" : "begin",
"end" : "end",
"program" : "program",
"var" : "var",
"then" : "then",
"else" : "else",
"while" : "while",
"do" : "do",
"for" : "for",
"to" : "to",
"downto" : "downto",
"function" : "function",
"procedure" : "procedure",
"not" : "not",
"mod" : "mod",
"and" : "and",
"or" : "or",
"array" : "array",
"of" : "of",
"integer" : "integer",
"real" : "real",
"boolean" : "boolean",
"char" : "char",
"string" : "string"
},
"string_word" : "'([^']*)'",
"integer_num" : "\\d*",
"float_num" : "[0-9]+\\.[0-9]+",
"identifier" : "[a-zA-Z]\\w*",
"two_points" : ":",
"var_with_comma" : "([a-zA-Z]\\w*),",
"attribution" : ":=",
"plus" : "\\+",
"minus" : "-",
"mult" : "\\*",
"div" : "/",
"lt" : "<",
"gt" : ">",
"function_call" : "([a-zA-Z]\\w*)(\\([^)]*\\))?;?",
"end_line" : ";"
}