Closed
Description
❯ cat examples/expr2.py
for f in (a, b, c, d):
pass
❯ lpy --show-ast examples/expr2.py --tree # Old Parser
└-Module
|-body=↧
| └-For
| |-target=Name
| | |-id=f
| | └-expr_contextType=Store
| |-iter=Tuple
| | |-elts=↧
| | | |-Name
| | | | |-id=a
| | | | └-expr_contextType=Load
| | | |-Name
| | | | |-id=b
| | | | └-expr_contextType=Load
| | | |-Name
| | | | |-id=c
| | | | └-expr_contextType=Load
| | | └-Name
| | | |-id=d
| | | └-expr_contextType=Load
| | └-expr_contextType=Load
| |-body=↧
| | └-Pass
| |-orelse=↧
| └-type_comment=()
└-type_ignores=↧
❯ lpy --show-ast --new-parser examples/expr2.py --tree # New Parser
syntax error: Token ',' is unexpected here
--> examples/expr2.py:1:12
|
1 | for f in (a, b, c, d):
| ^
Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that needs to be fixed).