Skip to content

WIP bpo-43892: Make match patterns explicit in AST - #8

Closed
ncoghlan wants to merge 1 commit into
masterfrom
esf-43892-explicit-pattern-matching-ast
Closed

WIP bpo-43892: Make match patterns explicit in AST#8
ncoghlan wants to merge 1 commit into
masterfrom
esf-43892-explicit-pattern-matching-ast

Conversation

@ncoghlan

Copy link
Copy Markdown
Owner
  • Separates "pattern" and "expr" nodes in AST
  • AST node names are derived from the AST proposed
    in PEP 642, except that MatchValue always matches
    by equality and a separate MatchConstant node is
    defined for matching by identity
  • Grammar definition has been updated to emit the
    newly defined AST nodes
  • TODO: update code generator to consume new nodes
  • TODO: update AST validator to consume new nodes
  • TODO: update AST unparser to consume new nodes

* Separates "pattern" and "expr" nodes in AST
* AST node names are derived from the AST proposed
in PEP 642, except that MatchValue always matches
by equality and a separate MatchConstant node is
defined for matching by identity
* Grammar definition has been updated to emit the
newly defined AST nodes
* TODO: update code generator to consume new nodes
* TODO: update AST validator to consume new nodes
* TODO: update AST unparser to consume new nodes
@ncoghlan

Copy link
Copy Markdown
OwnerAuthor

Branch name here wasn't right, so I created #9

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ncoghlan