Implement matching with quasiquotes