add ast pattern matcher to ast.d