app51.scala
changeset 92 e85600529ca5
parent 91 47f86885d481
child 93 4794759139ea
equal deleted inserted replaced
91:47f86885d481 92:e85600529ca5
     1 abstract class Rexp
       
     2 
       
     3 case object NULL extends Rexp
       
     4 case object EMPTY extends Rexp
       
     5 case class CHAR(c: Char) extends Rexp
       
     6 case class ALT(r1: Rexp, r2: Rexp) extends Rexp
       
     7 case class SEQ(r1: Rexp, r2: Rexp) extends Rexp
       
     8 case class STAR(r: Rexp) extends Rexp