dregex.impl.NormTree.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dregex_2.11 Show documentation
Show all versions of dregex_2.11 Show documentation
Deterministic Regular Expression Engine
package dregex.impl
object NormTree {
trait Node
trait Char extends Node
trait SglChar extends Char
case object Other extends SglChar {
override def toString = "other"
}
case class Lit(char: scala.Char) extends SglChar {
override def toString = char.toString
}
case object Epsilon extends Char {
override def toString = "ε"
}
case class Disj(values: Seq[Node]) extends Node {
override def toString = s"Disj(${values.mkString(", ")})"
}
case class Rep(min: Int, max: Int, value: Node) extends Node
case class Juxt(values: Seq[Node]) extends Node {
override def toString = s"Juxt(${values.mkString(", ")})"
}
}