-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymbol_table.py
52 lines (42 loc) · 2.65 KB
/
symbol_table.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
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 2 09:54:42 2019
@author: shakil
"""
blocks={"«": "Start of a Condition/Loop", "»": "End of a Condition/Loop",
"(": "Left Parantese", ")": "Right Parantese", "[": "Start of an Operation",
"]": "End of an Operation", ":": "Start of Single Line Comment",
"\"": "Start/End of Multiline Comment", "'": "Start/End of a String"}
comment={"Samovar": "Single Line Comment", "Ballet": "Multiline Comment Start"}
delimiter={"~": "Assignment", ",": "Seperator"}
#parsing problems
arithmetic={"Kievskaya": "Plus", "Matryoshka": "Division",
"ScarletSails": "Multiplication", "Novodevichy": "Minus",
"Peterhof": "Power", "MoscowRiver": "Quotient", "NevaRiver": "Remainder"}
logic={"StIsaacCatherdal":"Equals", "SpilledBlood": "Not Equal",
"Yakutsk": "Less than", "SparrowHills": "Greater than",
"Elbrus": "Greater than or Equal to", "CaspianSea": "Less than or Equal to",
"GorkyPark": "AND", "Gum": "OR"}
function={"PalaceBridge": "Input", "FinlandGulf": "Output", "Kievskaya": "Plus",
"Matryoshka": "Division", "ScarletSails": "Multiplication", "Novodevichy": "Minus",
"Peterhof": "Power", "MoscowRiver": "Quotient", "NevaRiver": "Remainder",
"StIsaacCatherdal":"Equals", "SpilledBlood": "Not Equal", "Yakutsk": "Less than",
"SparrowHills": "Greater than", "Elbrus": "Greater than or Equal to",
"CaspianSea": "Less than or Equal to", "GorkyPark": "AND", "Gum": "OR"}
keyword={"RedSquare": "Start of a Loop", "AlexanderGarden": "End of a Loop",
"VictoryPark": "Condition", "Hermitage": "Array"}
data_type={"PeacockClock": "Integer", "PazyrykCarpet": "Float", "AmberRoom": "String"}
reserved={"«": "Start of a Condition/Loop", "»": "End of a Condition/Loop",
"(": "Left Parantese", ")": "Right Parantese", "[": "Start of an Operation",
"]": "End of an Operation", ":": "Start of Single Line Comment",
"\"": "End of Multiline Comment", "'": "Start/End of a String","Samovar": "Single Line Comment",
"Ballet": "Multiline Comment Start", "~": "Assignment", ",": "Seperator",
"PalaceBridge": "Input", "FinlandGulf": "Output","Kievskaya": "Plus",
"Matryoshka": "Division", "ScarletSails": "Multiplication", "Novodevichy": "Minus",
"Peterhof": "Power", "MoscowRiver": "Quotient", "NevaRiver": "Remainder",
"StIsaacCatherdal":"Equals", "SpilledBlood": "Not Equal", "Yakutsk": "Less than",
"SparrowHills": "Greater than", "Elbrus": "Greater than or Equal to",
"CaspianSea": "Less than or Equal to", "GorkyPark": "AND", "Gum": "OR",
"RedSquare": "Start of a Loop", "AlexanderGarden": "End of a Loop",
"VictoryPark": "Condition", "Hermitage": "Array", "PeacockClock": "Integer",
"PazyrykCarpet": "Float", "AmberRoom": "String"}