Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser returning None #11

Open
Infiniti20 opened this issue Jan 11, 2021 · 4 comments
Open

Parser returning None #11

Infiniti20 opened this issue Jan 11, 2021 · 4 comments

Comments

@Infiniti20
Copy link

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.

@ibnsultan
Copy link

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

@Infiniti20
Copy link
Author

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.

@ibnsultan
Copy link

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

@sergiorivera50
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants