/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2003-2009, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id: PointedHedgeExp.scala 16893 2009-01-13 13:09:22Z cunei $


package scala.util.regexp

/** pointed regular hedge expressions, a useful subclass of
 *  regular hedge expressions.
 *
 *  @author  Burak Emir
 *  @version 1.0
 */
abstract class PointedHedgeExp extends Base {

  type _regexpT <: RegExp
  type _labelT

  case class  Node(label: _labelT, r: _regexpT) extends RegExp {
    final val isNullable = false
  }

  case class  TopIter(r1: _regexpT, r2: _regexpT) extends RegExp {
    final val isNullable = r1.isNullable && r2.isNullable //?
  }

  case object Point extends RegExp {
    final val isNullable = false
  }

}