-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Main.py
24 lines (19 loc) · 661 Bytes
/
Main.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
import Classes
import os
import Commands as Do
import Config
import Functions as Fun
# Taking in the Pseudocode (currently through a text file)
dirname = os.path.dirname(__file__)
dirname += "\\To be translated.txt"
File = open(dirname, "r")
Config.FileList = list(File)
File.close()
Fun.rem_end(Config.FileList)
Fun.object_gen()
Config.Iteratables[0] = Classes.FUNCTION(Config.FileList)
# Iterates through the list of the lines
while Config.Iteratables[0].line_number < len(Config.Iteratables[0].line_list):
cur_line = Config.Iteratables[0].line_list[Config.Iteratables[0].line_number]
Do.main(cur_line)
Config.Iteratables[0].line_number += 1