macOS / binaries /

treereg

/usr/bin/treereg
Compiler for tree regular expressions

Treereg translates a tree grammar specification file (default extension '.trg' describing a set of tree patterns and the actions to modify them using tree-terms.

source: man