Commit 9d97e660 authored by Taddeus Kroes's avatar Taddeus Kroes

Fixed index out of bounds bug that occured during execution.

parent 43a4e07d
...@@ -245,7 +245,7 @@ class Block: ...@@ -245,7 +245,7 @@ class Block:
def end(self): def end(self):
"""Check if the pointer is at the end of the statement list.""" """Check if the pointer is at the end of the statement list."""
return self.pointer == len(self) return self.pointer >= len(self)
def peek(self, count=1): def peek(self, count=1):
"""Read the statements until an offset from the current pointer """Read the statements until an offset from the current pointer
......
Markdown is supported
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