code: function parseSwitch (spec) {
    const select = spec.select
    const defaultStatement = parseDefaultStatement(spec.id, select)
    return {
      cases: parseCaseStatements(select),
      default: createReducer(defaultStatement)
    }
  }
docs: parse spec
  
  @param {any} spec
  @returns