progs/app01.scala
changeset 400 e4afe3f46c29
parent 263 92e6985018ae
equal deleted inserted replaced
399:5c1fbb39c93e 400:e4afe3f46c29
     1 abstract class Rexp
     1 abstract class Rexp
     2 case object NULL extends Rexp
     2 case object ZERO extends Rexp
     3 case object EMPTY extends Rexp
     3 case object ONE extends Rexp
     4 case class CHAR(c: Char) extends Rexp
     4 case class CHAR(c: Char) extends Rexp
     5 case class ALT(r1: Rexp, r2: Rexp) extends Rexp 
     5 case class ALT(r1: Rexp, r2: Rexp) extends Rexp 
     6 case class SEQ(r1: Rexp, r2: Rexp) extends Rexp 
     6 case class SEQ(r1: Rexp, r2: Rexp) extends Rexp 
     7 case class STAR(r: Rexp) extends Rexp 
     7 case class STAR(r: Rexp) extends Rexp