A scheme pattern matcher inspired by Qi/Shen