Files
mgmt/lang/interpret_test/TestAstFunc1/hello0.txtar
James Shubin 28f5b8331a lang: funcs: structs: Improve naming
These could print nicer for debugging.
2024-12-08 16:24:42 -05:00

16 lines
271 B
Plaintext

-- main.mcl --
import "fmt"
$s = "world"
test "greeting" {
anotherstr => fmt.printf("hello: %s", $s),
}
-- OUTPUT --
Edge: FuncValue -> call # fn
Vertex: FuncValue
Vertex: call
Vertex: const: str("greeting")
Vertex: const: str("hello: %s")
Vertex: const: str("world")