Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zrr1999 opened this issue Mar 13, 2024 · 1 comment
Open

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

zrr1999 opened this issue Mar 13, 2024 · 1 comment

Comments

@zrr1999
Copy link
Collaborator

zrr1999 commented Mar 13, 2024

目前只支持函数

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里

@zrr1999
Copy link
Collaborator Author

zrr1999 commented Mar 13, 2024

@gouzil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant