Added logic to handle lib & class declaration

This commit is contained in:
2021-10-27 18:30:22 +02:00
parent 793ca62ddd
commit 2b02341336
23 changed files with 292 additions and 33 deletions

View File

@@ -1,5 +1,10 @@
from abc import ABC, abstractmethod
from cpl_core.console.console import Console
from cpl_core.console.foreground_color_enum import ForegroundColorEnum
from runtime.model.error import Error
class RuntimeServiceABC(ABC):
@@ -13,3 +18,15 @@ class RuntimeServiceABC(ABC):
@line_count.setter
@abstractmethod
def line_count(self, line_count: int): pass
@abstractmethod
def input(self, prefix: str) -> str: pass
@abstractmethod
def output(self, text: str): pass
@abstractmethod
def error(self, error: Error): pass
@abstractmethod
def runtime_error(self, error: Error): pass