-
Notifications
You must be signed in to change notification settings - Fork 0
/
tables.py
44 lines (44 loc) · 852 Bytes
/
tables.py
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
letters = "abcdefghigklmnopqrstuvwxyz"
digits = "0123456789"
single_delimiters = {
';': ord(';'),
'.': ord('.'),
',': ord(','),
':': ord(':'),
'=': ord('='),
'+': ord('+'),
'-': ord('-'),
'(': ord('('),
')': ord(')'),
'[': ord('['),
']': ord(']'),
'#': ord('#'),
'\'': ord('\''),
'\\': ord('\\'),
}
double_delimiters = {
':=': 301,
'..': 302
}
delimiters = single_delimiters
delimiters.update(double_delimiters)
whitespaces = [' ', '\n', '\t', '\r', '\f']
keywords_table = {
'program': 401,
'procedure': 402,
'const': 403,
'begin': 404,
'end': 405,
'var': 406,
'signal': 407,
'complex': 408,
'integer': 409,
'float': 410,
'blockfloat': 411,
'ext': 412,
'deffunc': 413,
'link': 414,
'in': 415,
'out': 416,
'$exp': 417,
}