BasePattern
ast.pattern = class pattern(AST)
| pattern = MatchValue(expr value)
| | MatchSingleton(constant value)
| | MatchSequence(pattern* patterns)
| | MatchMapping(expr* keys, pattern* patterns, identifier? rest)
| | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
| | MatchStar(identifier? name)
| | MatchAs(pattern? pattern, identifier? name)
| | MatchOr(pattern* patterns)
Content copied to clipboard