@@ -110,8 +110,9 @@ static Context compile(ACell form, Context context) {
110
110
if (form instanceof ADataStructure ) {
111
111
if (form instanceof AList ) return compileList ((AList <ACell >) form , context );
112
112
if (form instanceof AVector ) return compileVector ((AVector <ACell >) form , context );
113
- if (form instanceof AMap ) return compileMap ((AMap <ACell , ACell >) form , context );
113
+ if (form instanceof AHashMap ) return compileMap ((AHashMap <ACell , ACell >) form , context );
114
114
if (form instanceof ASet ) return compileSet ((ASet <ACell >) form , context );
115
+ if (form instanceof AMap ) return compileConstant ( context ,form );
115
116
return context .withCompileError ("Unexpected data structure: " +form .getClass ());
116
117
}
117
118
@@ -309,7 +310,7 @@ private static Context compileLookup(AList<ACell> list, Context context) {
309
310
* @param context
310
311
* @return Op producing the given map
311
312
*/
312
- private static Context compileMap (AMap <ACell , ACell > form , Context context ) {
313
+ private static Context compileMap (AHashMap <ACell , ACell > form , Context context ) {
313
314
int n = form .size ();
314
315
if (n ==0 ) return context .withResult (Juice .COMPILE_CONSTANT , Constant .EMPTY_MAP );
315
316
@@ -801,7 +802,7 @@ public Context invoke(Context context,ACell[] args ) {
801
802
return ctx .withResult (Juice .EXPAND_SEQUENCE , updated );
802
803
}
803
804
804
- if (form instanceof AMap ) {
805
+ if (form instanceof AHashMap ) {
805
806
Context ctx = context ;
806
807
AMap <ACell , ACell > updated = Maps .empty ();
807
808
for (Map .Entry <ACell , ACell > me : ((AMap <ACell , ACell >) form ).entrySet ()) {
0 commit comments