disambiguate
This commit is contained in:
parent
1f424d332e
commit
be9beabac0
|
@ -32,11 +32,11 @@ bi = Builtin
|
|||
|
||||
showTerm itos heap = runIdentity . heapStruct atom struct hrec heap
|
||||
where
|
||||
atom (Atom a) = pure $ itos M.! a
|
||||
atom (Atom a) = pure $ "'" ++ itos M.! a ++ "'"
|
||||
atom (Number n) = pure (show n)
|
||||
atom VoidRef = pure "_"
|
||||
struct (Struct (IR.Id h _)) args =
|
||||
pure $ itos M.! h ++ "(" ++ intercalate "," args ++ ")"
|
||||
pure $ "'" ++ itos M.! h ++ "'(" ++ intercalate "," args ++ ")"
|
||||
hrec (HeapRef hr) ref =
|
||||
pure $
|
||||
(if hr == ref
|
||||
|
|
Loading…
Reference in a new issue