parseExpr#

swordfish.function.parseExpr()#

Convert string into metacode, which can be executed by function eval.

Parameters:
  • X (Constant) – A string scalar/vector.

  • varDict (Constant, optional) – An optional parameter, which is a dictionary. If varDict is specified, while parsing by function eval , the variable in X will be parsed as the key of varDict. And the value of this variable is the value of varDict.

  • modules (Constant, optional) – An optional parameter which can be a string or an array of strings, indicating the name of the module to be loaded.

  • overloadedOperators (Constant, optional) – An optional parameter, which is a dictionary. The operators are mapped to a function. The key must be a string scalar, and the value must be a binary function.