Skip to content

match 语法转换的功能添加 #17

@zrr1999

Description

@zrr1999

目前只支持函数

def test6():
       match i:
           case 0:
               yield 0
           case 1:
               yield 1

但是有很多情况是多层嵌套的

def test6():
   for i in range(2):
       match i:
           case 0:
               yield 0
           case 1:
               yield 1

需要把现有实现改成到visit_match里

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions