For Parrot there is also the "Tree Grammar Engine" (sorry, I don't know if there's a better link target, particle++ for providing at least this one) - are you looking for something like this?
In reply to Re: Easy Matching of nested data structures
by moritz
in thread Easy Matching of nested data structures
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |