I searched the forums but I couldn\'t figure it out if the other similar questions are necessarily related to this one.
What I\'m trying to do is match a subtree to a t
Here are a few references that may help you:
Aho's Efficient Tree Pattern Matching: an Aid to Code Generation
Stanford's Tree pattern matching programs
From IMECS 2011: Tree Pattern Matching Algorithm Using a Succinct Data Structure