From a1ae14e1ee838151532754a1360d13af16a55d05 Mon Sep 17 00:00:00 2001
From: Chris <Christopher.Happe@uni-duesseldorf.de>
Date: Tue, 24 Nov 2020 10:08:46 +0100
Subject: [PATCH] =?UTF-8?q?Support=20f=C3=BCr=20MINUS=20in=20Unicode=20f?=
 =?UTF-8?q?=C3=BCr=20alle=20Interpreter.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 info4/kapitel-8/Interpreter/gotointerpreter.py  | 2 +-
 info4/kapitel-8/Interpreter/loopinterpreter.py  | 2 +-
 info4/kapitel-8/Interpreter/whileinterpreter.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/info4/kapitel-8/Interpreter/gotointerpreter.py b/info4/kapitel-8/Interpreter/gotointerpreter.py
index 5774189..529f866 100644
--- a/info4/kapitel-8/Interpreter/gotointerpreter.py
+++ b/info4/kapitel-8/Interpreter/gotointerpreter.py
@@ -14,7 +14,7 @@ class GOTOInterpreter:
                                (re.compile(r'x\d+'), 'IDENTIFIER'),
                                (re.compile(r'M\d+'), 'MARKER'),
                                (re.compile(r'\+'), 'PLUS'),
-                               (re.compile(r'-|−'), 'MINUS'),
+                               (re.compile(r'[−-]'), 'MINUS'),
                                (re.compile(r':=|≔'), 'ALLOCATION'),
                                (re.compile(r'='), 'EQUALS'),
                                (re.compile(r'/=|≠|!='), 'NOTEQUALS'),
diff --git a/info4/kapitel-8/Interpreter/loopinterpreter.py b/info4/kapitel-8/Interpreter/loopinterpreter.py
index 64c9851..ea817b0 100644
--- a/info4/kapitel-8/Interpreter/loopinterpreter.py
+++ b/info4/kapitel-8/Interpreter/loopinterpreter.py
@@ -35,7 +35,7 @@ class LOOPInterpreter:
         self.regex_to_token = [(re.compile(r'\d+'), 'NUMBER'),
                                (re.compile(r'x\d+'), 'IDENTIFIER'),
                                (re.compile(r'\+'), 'PLUS'),
-                               (re.compile(r'-'), 'MINUS'),
+                               (re.compile(r'[−-]'), 'MINUS'),
                                (re.compile(r':=|≔'), 'ALLOCATION'),
                                (re.compile(r'LOOP'), 'LOOP'),
                                (re.compile(r'DO'), 'DO'),
diff --git a/info4/kapitel-8/Interpreter/whileinterpreter.py b/info4/kapitel-8/Interpreter/whileinterpreter.py
index cc8a6cd..ac8a767 100644
--- a/info4/kapitel-8/Interpreter/whileinterpreter.py
+++ b/info4/kapitel-8/Interpreter/whileinterpreter.py
@@ -34,7 +34,7 @@ class WHILEInterpreter(LOOPInterpreter):
         self.regex_to_token = [(re.compile(r'\d+'), 'NUMBER'),
                                (re.compile(r'x\d+'), 'IDENTIFIER'),
                                (re.compile(r'\+'), 'PLUS'),
-                               (re.compile(r'-'), 'MINUS'),
+                               (re.compile(r'[−-]'), 'MINUS'),
                                (re.compile(r':=|≔'), 'ALLOCATION'),
                                (re.compile(r'/=|≠|!='), 'NOTEQUALS'),
                                (re.compile(r'LOOP'), 'LOOP'),
-- 
GitLab