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

6 lines
110 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
? def prog := <elang:syntax.makeEParser>.run("1 + 1")
# value: e`1.add(1)`
? prog.eval(safeScope)
# value: 2