Skip to content
Snippets Groups Projects
Commit 9fa55601 authored by Chris's avatar Chris
Browse files

Refactor: Nicht erreichbare Bedingung entfernt

parent b01c5f0c
No related branches found
No related tags found
Loading
...@@ -121,10 +121,8 @@ class WHILEInterpreter(LOOPInterpreter): ...@@ -121,10 +121,8 @@ class WHILEInterpreter(LOOPInterpreter):
continue continue
elif token.k == 'END': elif token.k == 'END':
end_found = True end_found = True
if identifier_token.v in self.values:
while_value = int(self.values.get(identifier_token.v)) while_value = int(self.values.get(identifier_token.v))
else:
while_value = 0
return self.next_token() return self.next_token()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment