lang/interpret_test/TestAstFunc1/simple-func2.txtar
raw| 1 | -- main.mcl -- |
| 2 | func answer() { |
| 3 | "the answer is 42" |
| 4 | } |
| 5 | |
| 6 | $out1 = answer() |
| 7 | $out2 = answer() |
| 8 | |
| 9 | test [$out1 + $out2,] {} |
| 10 | -- OUTPUT -- |
| 11 | Edge: FuncValue -> call # fn |
| 12 | Edge: FuncValue -> call # fn |
| 13 | Edge: FuncValue -> call # fn |
| 14 | Edge: call -> composite # 0 |
| 15 | Vertex: FuncValue |
| 16 | Vertex: FuncValue |
| 17 | Vertex: FuncValue |
| 18 | Vertex: call |
| 19 | Vertex: call |
| 20 | Vertex: call |
| 21 | Vertex: composite |
| 22 | Vertex: const |