parameters: (self, p)
docstring: switch : PTSWITCH LPAREN VAR RPAREN comma_opt switch_cases PCLOSE
docstring_summary: switch : PTSWITCH LPAREN VAR RPAREN comma_opt switch_cases PCLOSE
docstring_tokens: switch : PTSWITCH LPAREN VAR RPAREN comma_opt switch_cases PCLOSE
function: def p_switch (self, p):
          '''switch : PTSWITCH LPAREN VAR RPAREN comma_opt switch_cases PCLOSE'''
          p[0] = PubSwitch (key = p[3], cases = p[6], start = p.lineno (1),
                            end = p.lineno (7))
function_tokens: def p_switch ( self , p ) : p [ 0 ] = PubSwitch ( key = p [ 3 ] , cases = p [ 6 ] , start = p . lineno ( 1 ) , end = p . lineno ( 7 ) )