From 1db3efae52c7928403ddbef0bfd39041f509e273 Mon Sep 17 00:00:00 2001
From: Chris <Christopher.Happe@uni-duesseldorf.de>
Date: Fri, 20 Nov 2020 13:12:39 +0100
Subject: [PATCH] =?UTF-8?q?Token=20EQUALS=20in=20ALLOCATION=20umbenannt=20?=
 =?UTF-8?q?um=20passende=20Benennung=20f=C3=BCr=20GOTO-Interpreter=20zu=20?=
 =?UTF-8?q?erm=C3=B6glichen?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/info4/kapitel-8/Interpreter/loopinterpreter.py b/info4/kapitel-8/Interpreter/loopinterpreter.py
index 4cb0d0e..64c9851 100644
--- a/info4/kapitel-8/Interpreter/loopinterpreter.py
+++ b/info4/kapitel-8/Interpreter/loopinterpreter.py
@@ -36,7 +36,7 @@ class LOOPInterpreter:
                                (re.compile(r'x\d+'), 'IDENTIFIER'),
                                (re.compile(r'\+'), 'PLUS'),
                                (re.compile(r'-'), 'MINUS'),
-                               (re.compile(r':=|≔'), 'EQUALS'),
+                               (re.compile(r':=|≔'), 'ALLOCATION'),
                                (re.compile(r'LOOP'), 'LOOP'),
                                (re.compile(r'DO'), 'DO'),
                                (re.compile(r'END'), 'END'),
@@ -53,7 +53,7 @@ class LOOPInterpreter:
         if identifier_1 in forbidden_identifiers:
             self.error_handler.handle_error("Identifier " + identifier_1 +
                                             " ist bereits in Loop vorhanden und darf nicht verwendet werden.")
-        if not self.next_nonempty_token("Zuweisung", ":=").k == 'EQUALS':
+        if not self.next_nonempty_token("Zuweisung", ":=").k == 'ALLOCATION':
             self.error_handler.handle_error(":= in Zuweisung erwartet.")
         identifier_token_2 = self.next_nonempty_token("Zuweisung", "IDENTIFIER (x0, x1, ...) oder NUMBER")
         if identifier_token_2.k == 'NUMBER':
@@ -90,7 +90,7 @@ class LOOPInterpreter:
         if identifier_1 in forbidden_identifiers:
             self.error_handler.handle_error("Identifier " + identifier_1 +
                                             " ist bereits in Loop vorhanden und darf nicht verwendet werden.")
-        if not self.next_nonempty_token("Zuweisung", ":=").k == 'EQUALS':
+        if not self.next_nonempty_token("Zuweisung", ":=").k == 'ALLOCATION':
             self.error_handler.handle_error(":= in Zuweisung erwartet.")
 
         identifier_token_2 = self.next_nonempty_token("Zuweisung", "IDENTIFIER (x0, x1, ...) oder NUMBER")
diff --git a/info4/kapitel-8/Interpreter/whileinterpreter.py b/info4/kapitel-8/Interpreter/whileinterpreter.py
index 1c401de..cc8a6cd 100644
--- a/info4/kapitel-8/Interpreter/whileinterpreter.py
+++ b/info4/kapitel-8/Interpreter/whileinterpreter.py
@@ -35,7 +35,7 @@ class WHILEInterpreter(LOOPInterpreter):
                                (re.compile(r'x\d+'), 'IDENTIFIER'),
                                (re.compile(r'\+'), 'PLUS'),
                                (re.compile(r'-'), 'MINUS'),
-                               (re.compile(r':=|≔'), 'EQUALS'),
+                               (re.compile(r':=|≔'), 'ALLOCATION'),
                                (re.compile(r'/=|≠|!='), 'NOTEQUALS'),
                                (re.compile(r'LOOP'), 'LOOP'),
                                (re.compile(r'WHILE'), 'WHILE'),
-- 
GitLab