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

Walrus operator throws #3

Open
artificial-smahon opened this issue Dec 30, 2022 · 2 comments
Open

Walrus operator throws #3

artificial-smahon opened this issue Dec 30, 2022 · 2 comments

Comments

@artificial-smahon
Copy link

Parsing python that uses the walrus operator is throwing errors.

if e := tc.get("exception"):

line 78:18 extraneous input '=' expecting {STRING, NUMBER, 'return', 'raise', 'from', 'import', 'global', 'nonlocal', 'assert', 'lambda', 'not', 'None', 'True', 'False', 'yield', 'del', 'pass', 'continue', 'break', 'await', NEWLINE, NAME, '...', '*', '(', '[', '+', '-', '~', '{'}

@lexanth
Copy link
Owner

lexanth commented Jan 23, 2023

This package just wraps the grammar from https://github.com/antlr/grammars-v4/tree/master/python/python3-ts

That hasn't been updated to support newer syntax yet - once it has been, I'll update this package to support it.

@RobEin
Copy link

RobEin commented Jul 31, 2023

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