Debian Codegraph @

lang/interpret_test/TestAstFunc2/structlookup0.txtar

raw
1 -- main.mcl --
2 $st0 struct{x str} = struct{x => "hello",}
3 $name0 = $st0->x
4 test "${name0}" {}
5
6 $st1 = struct{y => "world",}
7 $name1 = $st1->y
8 test "${name1}" {}
9
10 $st2 = struct{x => true, y=> 42, z => "hello world",}
11 $name2 = $st2->z
12 test "${name2}" {}
13 -- OUTPUT --
14 Vertex: test[hello world]
15 Vertex: test[hello]
16 Vertex: test[world]