Files
mgmt/lang/interpret_test/TestAstFunc1/simple-func1.txtar
2023-06-01 16:56:44 -04:00

17 lines
405 B
Plaintext

-- main.mcl --
func answer() {
"the answer is 42"
}
$out1 = answer()
test $out1 {}
-- OUTPUT --
Edge: call:answer() -> var(out1) # var:out1
Edge: func() { str("the answer is 42") } -> call:answer() # call:answer
Edge: str("the answer is 42") -> func() { str("the answer is 42") } # body
Vertex: call:answer()
Vertex: func() { str("the answer is 42") }
Vertex: str("the answer is 42")
Vertex: var(out1)