lang/interpret_test/TestAstFunc3/hello0.txtar
raw| 1 | -- main.mcl -- |
| 2 | test "hello" { |
| 3 | boolptr => true, |
| 4 | anotherstr => "bye", |
| 5 | mixedstruct => struct{ |
| 6 | somebool => true, |
| 7 | somestr => "inside struct", |
| 8 | someint => 42, |
| 9 | somefloat => 3.14, |
| 10 | }, |
| 11 | } |
| 12 | -- OUTPUT -- |
| 13 | Field: test[hello].AnotherStr = "bye" |
| 14 | Field: test[hello].BoolPtr = true |
| 15 | Field: test[hello].MixedStruct = struct{somebool: true; somestr: "inside struct"; someint: 42; somefloat: 3.14; somePrivatefield: ""} |
| 16 | Vertex: test[hello] |