Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better CESK machine pretty-printing #948

Merged
merged 8 commits into from
Jan 4, 2023
Prev Previous commit
Next Next commit
s/loc/addr/
  • Loading branch information
byorgey committed Jan 4, 2023
commit 53b3bab87e0bd21318bdaeabe2b87041ec0920b6
2 changes: 1 addition & 1 deletion src/Swarm/Game/CESK.hs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ prettyFrame (FBind Nothing t _) (p, inner) = (0, pparens (p < 1) inner <+> ";" <
prettyFrame (FBind (Just x) t _) (p, inner) = (0, hsep [pretty x, "<-", pparens (p < 1) inner, ";", ppr t])
prettyFrame FDiscardEnv inner = prettyPrefix "D·" inner
prettyFrame (FImmediate c _worldUpds _robotUpds) inner = prettyPrefix ("I[" <> ppr c <> "]·") inner
prettyFrame (FUpdate loc) inner = prettyPrefix ("S@" <> pretty loc) inner
prettyFrame (FUpdate addr) inner = prettyPrefix ("S@" <> pretty addr) inner
prettyFrame FFinishAtomic inner = prettyPrefix "A·" inner
prettyFrame (FMeetAll _ _) inner = prettyPrefix "M·" inner

Expand Down