Debian Codegraph @

lang/interpret_test/TestAstFunc2/empty-edge-list-0.txtar

raw
1 -- main.mcl --
2 # this must pass type unification and generate output
3
4 # single resource
5 test "name" {}
6
7 # single resource, defined by list variable
8 $names = ["hey", "there",]
9 test $names {}
10
11 # multiples resources, defined by list
12 test ["hello", "world",] {
13 Depend => Test[$names],
14 }
15
16 $morenames = ["wow", "cool", "amazing",]
17 test $morenames {}
18
19 Test[$names] -> Test[$morenames]
20 -- OUTPUT --
21 Edge: test[hey] -> test[amazing] # test[hey] -> test[amazing]
22 Edge: test[hey] -> test[cool] # test[hey] -> test[cool]
23 Edge: test[hey] -> test[hello] # test[hey] -> test[hello]
24 Edge: test[hey] -> test[world] # test[hey] -> test[world]
25 Edge: test[hey] -> test[wow] # test[hey] -> test[wow]
26 Edge: test[there] -> test[amazing] # test[there] -> test[amazing]
27 Edge: test[there] -> test[cool] # test[there] -> test[cool]
28 Edge: test[there] -> test[hello] # test[there] -> test[hello]
29 Edge: test[there] -> test[world] # test[there] -> test[world]
30 Edge: test[there] -> test[wow] # test[there] -> test[wow]
31 Vertex: test[amazing]
32 Vertex: test[cool]
33 Vertex: test[hello]
34 Vertex: test[hey]
35 Vertex: test[name]
36 Vertex: test[there]
37 Vertex: test[world]
38 Vertex: test[wow]