RosettaCodeData/Task/Runtime-evaluation/E/runtime-evaluation-3.e

6 lines
110 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
? def prog := <elang:syntax.makeEParser>.run("1 + 1")
# value: e`1.add(1)`
? prog.eval(safeScope)
# value: 2