Open Infiniti20 opened 3 years ago
with a fast check that I did, try to look at line 163 of your code, there is a typho
it's if tok.type ...
instead of if tok.typw ...
with a fast check that I did, try to look at line 163 of your code, there is a typho
it's
if tok.type ...
instead ofif tok.typw ...
It didn't fix it. I must have mistyped it when I was trying to redo the syntax. Same result.
then there have to be a bunch of more other typos, please do attach the entire source code or provide a repository that I can reference from
The boolean expression being evaluated at the while loop inside bin_op
should be self.current_tok.type in ops
instead of self.current_tok in ops
.
That's my code. Still not sure what's wrong. Any help is appreciated.