py-myopl-code icon indicating copy to clipboard operation
py-myopl-code copied to clipboard

Parser returning None

Open Infiniti20 opened this issue 4 years ago • 4 comments

basic - Microsoft Visual Studio 2021-01-11 3_15_48 PM That's my code. Still not sure what's wrong. Any help is appreciated.

Infiniti20 avatar Jan 11 '21 20:01 Infiniti20

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 ...

ibnsultan avatar Jan 14 '21 11:01 ibnsultan

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 ...

It didn't fix it. I must have mistyped it when I was trying to redo the syntax. Same result.

Infiniti20 avatar Jan 14 '21 20:01 Infiniti20

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

ibnsultan avatar Jan 15 '21 02:01 ibnsultan

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.

sergiorivera50 avatar Jun 02 '21 16:06 sergiorivera50