@@ -139,6 +139,7 @@ translateConstant ChType = "__IDRRT__.Char"
139translateConstant StrType = "__IDRRT__.String"
139translateConstant StrType = "__IDRRT__.String"
140translateConstant BIType = "__IDRRT__.Integer"
140translateConstant BIType = "__IDRRT__.Integer"
141translateConstant FlType = "__IDRRT__.Float"
141translateConstant FlType = "__IDRRT__.Float"
142+translateConstant PtrType = "__IDRRT__.Ptr"
142translateConstant Forgot = "__IDRRT__.Forgot"
143translateConstant Forgot = "__IDRRT__.Forgot"
143translateConstant c =
144translateConstant c =
144 "(function(){throw 'Unimplemented Const: " ++ show c ++ "';})()"
145 "(function(){throw 'Unimplemented Const: " ++ show c ++ "';})()"
@@ -450,7 +451,7 @@ translateCase var (SConstCase ty e)
450 | IType <- ty = matchHelper "Int"
451 | IType <- ty = matchHelper "Int"
451 | BIType <- ty = matchHelper "Integer"
452 | BIType <- ty = matchHelper "Integer"
452 | FlType <- ty = matchHelper "Float"
453 | FlType <- ty = matchHelper "Float"
453− | PtrType <- ty = matchHelper "Pointer"
454+ | PtrType <- ty = matchHelper "Ptr"
454 | Forgot <- ty = matchHelper "Forgot"
455 | Forgot <- ty = matchHelper "Forgot"
456 matchHelper tyName = translateTypeMatch var tyName e
457 matchHelper tyName = translateTypeMatch var tyName e