progs/app51.scala
changeset 93 4794759139ea
parent 92 e85600529ca5
child 261 24531cfaa36a
equal deleted inserted replaced
92:e85600529ca5 93:4794759139ea
       
     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