RosettaCodeData/Task/Runtime-evaluation/E/runtime-evaluation-3.e
2023-07-01 13:44:08 -04:00

5 lines
110 B
Text

? def prog := <elang:syntax.makeEParser>.run("1 + 1")
# value: e`1.add(1)`
? prog.eval(safeScope)
# value: 2