Commit 42ac3e89 authored by Christopher Happe's avatar Christopher Happe
Browse files

Bugfix: Falscher Aufruf des Errorhandlers

parent 203f5210
......@@ -143,7 +143,7 @@ def process_loop(value_list, forbidden_identifiers, loop_token):
while not end_found:
token = verify_program(forbidden_identifiers, next_token())
if token is None or token.k not in ['SEMICOLON', 'END']:
error_handler("SEMICOLON oder END in LOOP erwartet.")
error_handler.handle_error("SEMICOLON oder END in LOOP erwartet.")
elif token.k == 'SEMICOLON':
continue
elif token.k == 'END':
......@@ -156,7 +156,7 @@ def process_loop(value_list, forbidden_identifiers, loop_token):
while not end_found:
token, value_list = process_program(value_list, forbidden_identifiers, next_token())
if token is None or token.k not in ['SEMICOLON', 'END']:
error_handler("SEMICOLON oder END in LOOP erwartet.")
error_handler.handle_error("SEMICOLON oder END in LOOP erwartet.")
elif token.k == 'SEMICOLON':
continue
elif token.k == 'END':
......@@ -182,7 +182,7 @@ def verify_loop(forbidden_identifiers, loop_token):
while not end_found:
token = verify_program(forbidden_identifiers, next_token())
if token is None or token.k not in ['SEMICOLON', 'END']:
error_handler("SEMICOLON oder END in LOOP erwartet.")
error_handler.handle_error("SEMICOLON oder END in LOOP erwartet.")
elif token.k == 'SEMICOLON':
continue
elif token.k == 'END':
......
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