implemented generation of multiples NSDs and spelling

This commit is contained in:
weckyy702
2020-12-28 12:57:53 +01:00
parent 2052e9a084
commit c3a61da020
4 changed files with 31 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ from os import remove
import re
from typing import List, Tuple
from errors.custom import JavaSyntaxError, ScopeNotFoundException
from errors.custom import InterpreterException, JavaSyntaxError, ScopeNotFoundException
from draw.Iinstruction import *
COMMENT_PATTERN = re.compile(r"""^//|^/\*\*|^\*|^--""")
@@ -20,7 +20,7 @@ remove_pattern = re.compile("|".join(REPLACE.keys()))
variable_regex = "^("
for kw in FUNCTION_IDENTIFIERS:
variable_regex += fr"""{kw}|"""
variable_pattern = re.compile(variable_regex[0:-1]+"$(.*)")
variable_pattern = re.compile(variable_regex[0:-1]+")$(.*)")
function_regex = "^("
for kw in FUNCTION_IDENTIFIERS: