All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dregex.impl.NormTree.scala Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
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(", ")})"
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy