progs/app01.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 16 Oct 2014 11:59:39 +0100
changeset 282 3e3b927a85cf
parent 263 92e6985018ae
child 400 e4afe3f46c29
permissions -rw-r--r--
added ho04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
263
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
abstract class Rexp
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
case object NULL extends Rexp
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
case object EMPTY extends Rexp
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
case class CHAR(c: Char) extends Rexp
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
case class ALT(r1: Rexp, r2: Rexp) extends Rexp 
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
case class SEQ(r1: Rexp, r2: Rexp) extends Rexp 
92e6985018ae updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
case class STAR(r: Rexp) extends Rexp