Skip to content

[New] Tuple as a function argument and nested tuple are not parsed. #620

Closed
@Thirumalai-Shaktivel

Description

@Thirumalai-Shaktivel
$ lpython --show-ast --new-parser constants1.py
syntax error: Token ',' is unexpected here
  --> constants1.py:38:15
   |
38 |     a = len((1, 2, 3))
   |               ^ 


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

$ lpython --show-ast --new-parser tuple1.py
syntax error: Token ',' is unexpected here
  --> tuple1.py:13:13
   |
13 |     a4 = ((1, 2, 3), (4, 5, 6))
   |             ^ 


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ParserIssues or improvements related to parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions