progs/app02.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 15 Sep 2020 23:13:45 +0100
changeset 756 f7c7a75e0583
parent 520 2849c305b12d
permissions -rw-r--r--
updated

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