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

21 lines
514 B
Plaintext

-- main.mcl --
# single resource
test "name" {}
# single resource, defined by list variable
$names = ["hey",]
test $names {}
# multiples resources, defined by list
test ["hello", "world",] {}
-- OUTPUT --
Edge: const: str("hello") -> composite: []str # 0
Edge: const: str("hey") -> composite: []str # 0
Edge: const: str("world") -> composite: []str # 1
Vertex: composite: []str
Vertex: composite: []str
Vertex: const: str("hello")
Vertex: const: str("hey")
Vertex: const: str("name")
Vertex: const: str("world")