Skip to content

pattern.find_matches(tree) or treematcher.find_matches(tree, pattern)? #43

@jhcepas

Description

@jhcepas

We need to decide what strategy is best (or maybe keep both), and organized the code in treematcher consequently. pros? cons?

p = Tree('(A+,B);') 
t = Tree('((A,B), C);')
treematcher.find_matches(t, p)
p = Tree('(A+,B);') 
t = Tree('((A,B), C);')
p.find_matches(tree)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions