Google

Go to the first, previous, next, last section, table of contents.


eval_str

eval_str(str)
:: str (文字列) を評価する.
return
オブジェクト
str
Asir の parser が受理可能な文字列
  • Asir の parser が受理可能な文字列を評価してその結果を返す.
  • 評価可能な文字列は, 式を表すものに限る.
  • 論理的には rtostr() の逆関数となる.
[0] eval_str("1+2");
3
[1] fctr(eval_str(rtostr((x+y)^10)));
[[1,1],[x+y,10]]
参照
section rtostr


Go to the first, previous, next, last section, table of contents.