Debian Codegraph @

lang/interpret_test/TestAstFunc3/sendrecv-simple0.txtar

raw
1 -- main.mcl --
2 # send/recv of value1.any into test.msg works!
3 value "value1" {
4 any => "i am value1",
5 }
6 test "test1" {
7 sendvalue => "hello from test",
8 expectrecv => ["anotherstr",], # expecting to recv on these keys!
9
10 Meta:autogroup => false,
11 }
12 print "print1" {
13 #msg => "", # gets value from send_value above
14 }
15 Value["value1"].any -> Test["test1"].anotherstr
16 Test["test1"].hello -> Print["print1"].msg
17 -- OUTPUT --
18 Edge: test[test1] -> print[print1] # test[test1] -> print[print1]
19 Edge: value[value1] -> test[test1] # value[value1] -> test[test1]
20 Field: print[print1].Msg = "hello from test"
21 Field: test[test1].AnotherStr = "i am value1"
22 Field: test[test1].ExpectRecv = ["anotherstr"]
23 Field: test[test1].SendValue = "hello from test"
24 Field: value[value1].Any = "i am value1"
25 Vertex: print[print1]
26 Vertex: test[test1]
27 Vertex: value[value1]