progs/app04.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 15 Nov 2017 00:28:25 +0000
changeset 534 6937caaff1d9
parent 520 2849c305b12d
permissions -rw-r--r--
update

abstract class Val
case object Empty extends Val
case class Chr(c: Char) extends Val
case class Sequ(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