string expr = "1+2"; int a = eval(expr); //文字列を式として動的評価 print(a);