def p_function_type(p):
 if (p[1] == 'void'):
  p[0] = TType.VOID
 else:
  p[0] = p[1]

def p_function_type ( p ) : if ( p [ 1 ] == 'void' ) : p [ 0 ] = TType . VOID else : p [ 0 ] = p [ 1 ]
function_type : field_type | void .