def parse_opcode_signature(env, sig, signode):
 m = opcode_sig_re.match(sig)
 if (m is None):
  raise ValueError
 (opname, arglist) = m.groups()
 signode += addnodes.desc_name(opname, opname)
 if (arglist is not None):
  paramlist = addnodes.desc_parameterlist()
  signode += paramlist
  paramlist += addnodes.desc_parameter(arglist, arglist)
 return opname.strip()

def parse_opcode_signature ( env , sig , signode ) : m = opcode_sig_re . match ( sig ) if ( m is None ) : raise ValueError ( opname , arglist ) = m . groups ( ) signode += addnodes . desc_name ( opname , opname ) if ( arglist is not None ) : paramlist = addnodes . desc_parameterlist ( ) signode += paramlist paramlist += addnodes . desc_parameter ( arglist , arglist ) return opname . strip ( )
transform an opcode signature into rst nodes .