dregex.SynteticRegex.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dregex_2.12 Show documentation
Show all versions of dregex_2.12 Show documentation
Deterministic Regular Expression Engine
The newest version!
package dregex
import dregex.impl.Dfa
import dregex.impl.SimpleState
/**
* A regular expression that was generated by an operation between others (not parsing a string), so it lacks a
* literal expression or NFA.
*/
class SynteticRegex private[dregex] (
private[dregex] val dfa: Dfa[SimpleState],
val universe: Universe
) extends Regex {
override def toString = s"[synthetic] (DFA states: ${dfa.stateCount})"
}