| 1 |
-- main.mcl -- |
| 2 |
# send/recv of value1.any into print1.msg works! |
| 3 |
value "value1" { |
| 4 |
any => "i am value1", |
| 5 |
} |
| 6 |
print "print1" { |
| 7 |
msg => "i am print1", |
| 8 |
|
| 9 |
Meta:autogroup => false, |
| 10 |
} |
| 11 |
Value["value1"].any -> Print["print1"].msg |
| 12 |
|
| 13 |
# One of these will be autogrouped into the other! The inner one can receive! |
| 14 |
# send/recv from value2.any into print2.msg works |
| 15 |
# send/recv from value3.any into (the usually autogrouped) print3 works too! |
| 16 |
value "value2" { |
| 17 |
any => "i am value2", |
| 18 |
} |
| 19 |
value "value3" { |
| 20 |
any => "i am value3", |
| 21 |
} |
| 22 |
print "print2" { |
| 23 |
msg => "i am print2", |
| 24 |
|
| 25 |
Meta:autogroup => true, |
| 26 |
} |
| 27 |
print "print3" { |
| 28 |
msg => "i am print3", |
| 29 |
|
| 30 |
Meta:autogroup => true, |
| 31 |
} |
| 32 |
Value["value2"].any -> Print["print2"].msg |
| 33 |
Value["value3"].any -> Print["print3"].msg |
| 34 |
-- OUTPUT -- |
| 35 |
Edge: value[value1] -> print[print1] # value[value1] -> print[print1] |
| 36 |
Edge: value[value2] -> print[print3] # value[value2] -> print[print2] |
| 37 |
Edge: value[value3] -> print[print3] # value[value3] -> print[print3] |
| 38 |
Field: print[print1].Msg = "i am value1" |
| 39 |
Field: print[print3].Msg = "i am value3" |
| 40 |
Field: value[value1].Any = "i am value1" |
| 41 |
Field: value[value2].Any = "i am value2" |
| 42 |
Field: value[value3].Any = "i am value3" |
| 43 |
Group: print[print3]: Field: print[print2].Msg = "i am value2" |
| 44 |
Group: print[print3]: Vertex: print[print2] |
| 45 |
Vertex: print[print1] |
| 46 |
Vertex: print[print3] |
| 47 |
Vertex: value[value1] |
| 48 |
Vertex: value[value2] |
| 49 |
Vertex: value[value3] |