This commit is contained in:
Sven Heidemann 2020-09-25 17:08:39 +02:00
parent 9812f8a210
commit aee3441f15
2 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,5 @@
from Interpreter.Validator import Validator
from Interpreter.Interpreter import Interpreter
from CCLang_sly.Interpreter import Interpreter as SlyCCLangInterpreter
from CCLang_rply.Interpreter import Interpreter as RplyCCLangInterpreter
from Interpreter.Utils import Utils
from Interpreter.Repo import Repo
@ -13,4 +11,3 @@ class ServiceInitializer:
self.utils = Utils(self.repo)
self.interpreter = Interpreter(self.repo, self.utils)
self.sly_cclang_interpreter = SlyCCLangInterpreter(self.repo, self.utils)
self.rply_cclang_interpreter = RplyCCLangInterpreter(self.repo, self.utils)

View File

@ -13,7 +13,6 @@ class Main:
self.__repo = self.__services.repo
self.__interpreter = self.__services.interpreter
self.__sly_cclang_interpreter = self.__services.sly_cclang_interpreter
self.__rply_cclang_interpreter = self.__services.rply_cclang_interpreter
def console(self) -> None:
"""
@ -25,7 +24,6 @@ class Main:
self.__repo.line_number = i + 1
#self.__interpreter.interpret(input('> '))
self.__sly_cclang_interpreter.interpret(input('> '))
#self.__rply_cclang_interpreter.interpret(input('> '))
i += 1
def files(self, file: str) -> None:
@ -46,8 +44,7 @@ class Main:
for i in range(0, len(f)):
self.__repo.line_number = i + 1
# self.__interpreter.interpret(f[i])
# self.__sly_cclang_interpreter.interpret(f[i])
self.__rply_cclang_interpreter.interpret(f[i])
self.__sly_cclang_interpreter.interpret(f[i])
if __name__ == '__main__':