def parse_prototype(text):
 m = re_symbol.match(text)
 if (not m):
  raise ValueError('Invalid function name for export prototype')
 s = m.start(0)
 e = m.end(0)
 symbol = text[s:e]
 functype = text[(e + 1):]
 return (symbol, functype)

def parse_prototype ( text ) : m = re_symbol . match ( text ) if ( not m ) : raise ValueError ( 'Invalid function name for export prototype' ) s = m . start ( 0 ) e = m . end ( 0 ) symbol = text [ s : e ] functype = text [ ( e + 1 ) : ] return ( symbol , functype )
separate the symbol and function-type in a a string with "symbol function-type" (e .