forked from biased-unit/planout-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example compiled PlanOut code: { "op": "seq", "seq": [ { "op": "set", "var": "foo", "value": "inside" }, { "op": "set", "var": "baz", "value": { "bar": { "op": "get", "var": "foo" }, "op": "map" } }, { "op": "set", "var": "x", "value": { "a": 2, "b": { "op": "get", "var": "baz" }, "op": "map" } } ] } When the above code is interpreted, the variable 'x' will be assigned a map. This map contains two (k, v) pairs. "a" = 2 "b" = map containing the (k, v) "bar" = "inside". Update test for map operator ... test assignment of an empty dictionary
- Loading branch information
Showing
4 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"op": "seq", | ||
"seq": [ | ||
{ | ||
"op": "set", | ||
"var": "foo", | ||
"value": "inside" | ||
}, | ||
{ | ||
"op": "set", | ||
"var": "baz", | ||
"value": { | ||
"bar": { | ||
"op": "get", | ||
"var": "foo" | ||
}, | ||
"op": "map" | ||
} | ||
}, | ||
{ | ||
"op": "set", | ||
"var": "x", | ||
"value": { | ||
"a": 2, | ||
"b": { | ||
"op": "get", | ||
"var": "baz" | ||
}, | ||
"op": "map" | ||
} | ||
} | ||
] | ||
} |