progs/app04.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 19 Oct 2015 14:45:50 +0100
changeset 356 d9c784c71305
parent 288 39aeca14af8c
child 520 2849c305b12d
permissions -rw-r--r--
updated

abstract class Val
case object Empty extends Val
case class Chr(c: Char) extends Val
case class Seq(v1: Val, v2: Val) extends Val
case class Left(v: Val) extends Val
case class Right(v: Val) extends Val
case class Stars(vs: List[Val]) extends Val
case class Rec(x: String, v: Val) extends Val