From 86353a8d84365272e29b9833259541fdeeae6b3f Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Sun, 27 Dec 2020 17:00:41 +0100 Subject: [PATCH] add interpreter WIP warning --- interpreter/interpret_source.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interpreter/interpret_source.py b/interpreter/interpret_source.py index 35c1c62..441e81a 100644 --- a/interpreter/interpret_source.py +++ b/interpreter/interpret_source.py @@ -22,6 +22,10 @@ WHILE_TAG = "solange " #german for 'while'. Change this depending on your langua REPLACE = dict((re.escape(k), '') for k in REMOVE_KEYWORDS) remove_pattern = re.compile("|".join(REPLACE.keys())) +logging.warn("""The Interpreter is WIP and cannot interpret classes or function definitions +as those do not exist in Nass-Shneidermann Diagrams. A fix is in the making +""") + def replace_all_tags(org: str): return remove_pattern.sub(lambda m: REPLACE[re.escape(m.group(0))], org)