From aee3441f157565b9e306321936135decd3d8ce24 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 25 Sep 2020 17:08:39 +0200 Subject: [PATCH] Bugfixes --- src/ServiceInitializer.py | 3 --- src/cclang.py | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ServiceInitializer.py b/src/ServiceInitializer.py index 24e1630..a2faea2 100644 --- a/src/ServiceInitializer.py +++ b/src/ServiceInitializer.py @@ -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) diff --git a/src/cclang.py b/src/cclang.py index b8b1e3b..e33045d 100644 --- a/src/cclang.py +++ b/src/cclang.py @@ -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__':