Skip to content

Add two-pass approach to match AST#12

Open
Thoemi09 wants to merge 3 commits intoflatironinstitute:unstablefrom
Thoemi09:two_pass_ast_matching
Open

Add two-pass approach to match AST#12
Thoemi09 wants to merge 3 commits intoflatironinstitute:unstablefrom
Thoemi09:two_pass_ast_matching

Conversation

@Thoemi09
Copy link
Contributor

  • first match classes/enums to detect all wrapped types
  • then match functions which may rely on wrapped types

Thoemi09 and others added 2 commits December 12, 2025 09:41
- first match classes/enums to detect all wrapped types
- then match functions which may rely on wrapped types
@parcollet
Copy link
Collaborator

Can you add a non regression test for this in basicfun or in tpl_something ?
e.g. the case from the slack with the template function and the class ?
It will be useful for potential future refactoring.

@Thoemi09
Copy link
Contributor Author

Sure, I have made the following PR: flatironinstitute/c2py#9

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

Successfully merging this pull request may close these issues.

2 participants