Files
mgmt/lang/interpret_test/TestAstFunc3/hello0.txtar
James Shubin 90d04990ca engine, lang: Add an AST test that looks at fields too
This gives us more options for testing when we need those kinds of more
extensive resource examination features.
2023-11-18 13:35:52 -05:00

17 lines
427 B
Plaintext

-- main.mcl --
test "hello" {
boolptr => true,
anotherstr => "bye",
mixedstruct => struct{
somebool => true,
somestr => "inside struct",
someint => 42,
somefloat => 3.14,
},
}
-- OUTPUT --
Field: test[hello].AnotherStr = "bye"
Field: test[hello].BoolPtr = true
Field: test[hello].MixedStruct = struct{somebool: true; somestr: "inside struct"; someint: 42; somefloat: 3.14; somePrivatefield: ""}
Vertex: test[hello]