added make_association, pop_into_association_key, pop_into_association_value byte codes to support assocation expressions

This commit is contained in:
hyunghwan.chung
2017-02-05 15:05:25 +00:00
parent eb83c8d83a
commit 60c38a1ecb
5 changed files with 77 additions and 5 deletions

View File

@ -215,14 +215,33 @@ class MyObject(Object)
## end of elimination.
a :=999.
a := #{
a := #{
1,
2,
a,
4,
1 + 1,
2 + 2
#{ 1, 2, #{a, a := a + 1, a, if (a > 10) { a + 20 } }, 3},
2 + 2,
#'a b c'
}.
(* Dictionary ???
a := #{
"a": 20,
b : 30
}.
a := #{
{ key, value },
{ key, value },
{ key, value },
{ key, value }
}
*)
abc := { key, value }.
{ key, value } dump.
a do: [ :v | v dump].
(*