blob: ce9ff95282665d4c088f9cd3fd1afa6329332da1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
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
}
}
|