Debian Codegraph @

lang/interpret_test/TestAstFunc3/value-resource0.txtar

raw
1 -- main.mcl --
2 value "hello1" {
3 #any => 42, # can be any type
4 any => "wow", # can be any type
5 }
6 value "hello2" {
7 any => "whatever", # TODO: remove the temporary placeholder here
8 #any => "", # XXX: remove any placeholder to see the bug when absent
9 }
10
11 test "test" {
12 #anotherstr => "", # get it from send/recv
13 }
14
15 Value["hello1"].any -> Value["hello2"].any
16 Value["hello2"].any -> Test["test"].anotherstr
17 -- OUTPUT --
18 Edge: value[hello1] -> value[hello2] # value[hello1] -> value[hello2]
19 Edge: value[hello2] -> test[test] # value[hello2] -> test[test]
20 Field: test[test].AnotherStr = "wow"
21 Field: value[hello1].Any = "wow"
22 Field: value[hello2].Any = "wow"
23 Vertex: test[test]
24 Vertex: value[hello1]
25 Vertex: value[hello2]