You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/cade/programs/hofstadter/hofstadter.py", line 221, in <module>
evaluator = Evaluator([Line(x) for x in rawlines])
File "/home/cade/programs/hofstadter/hofstadter.py", line 221, in <listcomp>
evaluator = Evaluator([Line(x) for x in rawlines])
File "/home/cade/programs/hofstadter/hofstadter.py", line 17, in __init__
self.tokenize()
File "/home/cade/programs/hofstadter/hofstadter.py", line 23, in tokenize
t = self.nextToken()
File "/home/cade/programs/hofstadter/hofstadter.py", line 76, in nextToken
while not self.text[self.index].isspace() or escaped and self.index < length:
IndexError: string index out of range
Error:
https://github.com/AZHenley/hofstadter/blob/main/hofstadter.py#L76 has the conditional checks out of order, it change from:
to:
The text was updated successfully, but these errors were encountered: