-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Do you have plans to support python 3.10 (for example, assignment expressions)? #2462
Comments
Yes, I have an implementation for Python 3.10 in ANTLR4. |
uploaded: I'm not uploading it to the ANTLR4 repository yet because it has yet to be tested. |
@RobEin Thank you very much! I'll try to use it soon. |
I still have to work on it. |
I have also uploaded another version (3.8.12) which can also handle the named expressions. |
The above grammars generate Java code is that true? Do you know of what that generates Python code? Actually, I tried to generate python code with these. I got a serialization error |
A Python 3.11.4 parser for ANTLR4 is ready. |
An assignment expression (sometimes also called a “named expression” or “walrus”) assigns an expression to an identifier, while also returning the value of the expression.
One common use case is when handling matched regular expressions:
Or, when processing a file stream in chunks:
From https://docs.python.org/3/reference/expressions.html#assignment-expressions
The text was updated successfully, but these errors were encountered: