progs/app02.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 19 Nov 2018 23:21:32 +0000
changeset 604 9e75249e96f2
parent 520 2849c305b12d
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
287
2c50b8b5886c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
abstract class Val
2c50b8b5886c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
case object Empty extends Val
356
d9c784c71305 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 287
diff changeset
     3
case class Chr(c: Char) extends Val
520
2849c305b12d updated
cu
parents: 356
diff changeset
     4
case class Sequ(v1: Val, v2: Val) extends Val
287
2c50b8b5886c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
case class Left(v: Val) extends Val
2c50b8b5886c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
case class Right(v: Val) extends Val
356
d9c784c71305 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 287
diff changeset
     7
case class Stars(vs: List[Val]) extends Val