Skip to content

Commit

Permalink
forgotten cons pretty printing
Browse files Browse the repository at this point in the history
  • Loading branch information
namin committed Feb 19, 2019
1 parent ff003d7 commit fb9ef3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions popl18/base.scala
Expand Up @@ -297,6 +297,7 @@ object Base {
case Lift(a) => s"(lift ${pretty(a,env)})"
case Fst(a) => s"(car ${pretty(a,env)})"
case Snd(a) => s"(cdr ${pretty(a,env)})"
case Cons(a,b) => s"(cons ${pretty(a,env)} ${pretty(b,env)})"
case Equ(a,b) => s"(eq? ${pretty(a,env)} ${pretty(b,env)})"
case Plus(a,b) => s"(+ ${pretty(a,env)} ${pretty(b,env)})"
case Minus(a,b) => s"(- ${pretty(a,env)} ${pretty(b,env)})"
Expand Down

0 comments on commit fb9ef3f

Please sign in to comment.