blob: 0d49fa13c95e86c7196a9851a953660065aa7ebe [file] [log] [blame]
rule Trees
merge l : Core!Tree
with r : Fragment!Tree
into t : Target!Tree {
t.label = l.label;
t.children ::= l.children + r.children;
}
rule Tree2Tree
transform s : Tree!Tree
to t : Target!Tree {
guard : s.label <> "f_root"
t.label = s.label;
t.children ::= s.children;
}