progs/app02.scala
changeset 287 2c50b8b5886c
child 356 d9c784c71305
equal deleted inserted replaced
286:19020b75d75e 287:2c50b8b5886c
       
     1 abstract class Val
       
     2 case object Empty extends Val
       
     3 case class Char(c: Char) extends Val
       
     4 case class Seq(v1: Val, v2: Val) extends Val
       
     5 case class Left(v: Val) extends Val
       
     6 case class Right(v: Val) extends Val
       
     7 case class Stars(vs: List[Val]) extends Val