parsing switch blocks.