Skip to content

[New] Parse IN and IS in the expression #511

Closed

Description

@Thirumalai-Shaktivel

Example:

if field in ["vararg", "kwarg"]:
    if value is None:
	pass

Error:

$ lpython --show-ast --new-parser examples/expr2.py
syntax error: Token 'in' is unexpected here
 --> examples/expr2.py:1:10
  |
1 | if field in ["vararg", "kwarg"]:
  |          ^^ 


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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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