Commit 93b95642 authored by Christopher Happe's avatar Christopher Happe
Browse files

Bugfix: Falscher Vergleich für EQUALS Token

parent f484753c
......@@ -51,7 +51,7 @@ def process_assignment(forbidden_identifiers, identifier_token_1):
if identifier_1 in forbidden_identifiers:
error_handler.handle_error("Identifier " + identifier_1 +
" ist bereits in Loop vorhanden und darf nicht verwendet werden.")
if next_nonempty_token("Zuweisung", ":=") == 'EQUALS':
if not next_nonempty_token("Zuweisung", ":=").k == 'EQUALS':
error_handler.handle_error(":= in Zuweisung erwartet.")
identifier_token_2 = next_nonempty_token("Zuweisung", "IDENTIFIER (x0, x1, ...) oder NUMBER")
if identifier_token_2.k == 'NUMBER':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment