parameters: (replStr)
return_statement: return lambda s,l,t: [replStr]
docstring: Helper method for common parse actions that simply return a literal value.  Especially
      useful when used with C{L{transformString<ParserElement.transformString>}()}.
  
      Example::
          num = Word(nums).setParseAction(lambda toks: int(toks[0]))
          na = oneOf("N/A NA").setParseAction(replaceWith(math.nan))
          term = na | num
          
          OneOrMore(term).parseString("324 234 N/A 234") # -> [324, 234, nan, 234]
docstring_summary: Helper method for common parse actions that simply return a literal value.  Especially
      useful when used with C{L{transformString<ParserElement.transformString>}()}.
docstring_tokens: Helper method for common parse actions that simply return a literal value . Especially useful when used with C { L { transformString<ParserElement . transformString > } () } .
function: def replaceWith(replStr):
      """
      Helper method for common parse actions that simply return a literal value.  Especially
      useful when used with C{L{transformString<ParserElement.transformString>}()}.
  
      Example::
          num = Word(nums).setParseAction(lambda toks: int(toks[0]))
          na = oneOf("N/A NA").setParseAction(replaceWith(math.nan))
          term = na | num
          
          OneOrMore(term).parseString("324 234 N/A 234") # -> [324, 234, nan, 234]
      """
      return lambda s,l,t: [replStr]
function_tokens: def replaceWith ( replStr ) : return lambda s , l , t : [ replStr ]