Skeleton for parser state machine.