def replaceWith(replStr):
 def _replFunc(*args):
  return [replStr]
 return _replFunc

def replaceWith ( replStr ) : def _replFunc ( * args ) : return [ replStr ] return _replFunc
helper method for common parse actions that simply return a literal value .