An html version of caterpillar.cql

; caterpillar.cql can be downloaded here.
; In the caterpillar theme, tripled pawns creep up the board one pawn at a time

(match :pgn mega.pgn :output out.pgn 
 (position Pb2 Pb3 Pb4 :movefrom Pb4 :moveto .b5
 :gappedsequence
  ((position Pb3 Pb4 Pb5))
 :flipcolor
 :shift
 )
)