| | 672 | |
| | 673 | reduceSyn ":=" [Syn "{}" [conExp, keyExp], valExp] = enterLValue $ do |
| | 674 | ref <- fromVal =<< enterEvalContext cxtItemAny valExp |
| | 675 | con <- enterEvalContext (cxtItem "Hash") conExp |
| | 676 | key <- fromVal =<< enterEvalContext (cxtItem "Str") keyExp |
| | 677 | doBind <- doHash con hash_storeElem |
| | 678 | doBind key ref |
| | 679 | return (castV ref) |
| | 680 | |
| | 681 | reduceSyn ":=" [Syn "[]" [conExp, keyExp], valExp] = enterLValue $ do |
| | 682 | ref <- fromVal =<< enterEvalContext cxtItemAny valExp |
| | 683 | con <- enterEvalContext (cxtItem "Array") conExp |
| | 684 | key <- fromVal =<< enterEvalContext (cxtItem "Int") keyExp |
| | 685 | doBind <- doArray con array_storeElem |
| | 686 | doBind key ref |
| | 687 | return (castV ref) |