progs/app02.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 10 May 2017 17:03:21 +0100
changeset 491 d5776c6018f0
parent 356 d9c784c71305
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