progs/app04.scala
changeset 356 d9c784c71305
parent 288 39aeca14af8c
child 520 2849c305b12d
equal deleted inserted replaced
355:a259eec25156 356:d9c784c71305
     1 abstract class Val
     1 abstract class Val
     2 case object Empty extends Val
     2 case object Empty extends Val
     3 case class Char(c: Char) extends Val
     3 case class Chr(c: Char) extends Val
     4 case class Seq(v1: Val, v2: Val) extends Val
     4 case class Seq(v1: Val, v2: Val) extends Val
     5 case class Left(v: Val) extends Val
     5 case class Left(v: Val) extends Val
     6 case class Right(v: Val) extends Val
     6 case class Right(v: Val) extends Val
     7 case class Stars(vs: List[Val]) extends Val
     7 case class Stars(vs: List[Val]) extends Val
     8 case class Rec(x: String, v: Val) extends Val
     8 case class Rec(x: String, v: Val) extends Val