add interpreter WIP warning

This commit is contained in:
weckyy702
2020-12-27 17:00:41 +01:00
parent 8f3fb62186
commit 86353a8d84

View File

@@ -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) REPLACE = dict((re.escape(k), '') for k in REMOVE_KEYWORDS)
remove_pattern = re.compile("|".join(REPLACE.keys())) 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): def replace_all_tags(org: str):
return remove_pattern.sub(lambda m: REPLACE[re.escape(m.group(0))], org) return remove_pattern.sub(lambda m: REPLACE[re.escape(m.group(0))], org)