dregex.ParsedRegex.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
import dregex.impl.RegexTree
import com.typesafe.scalalogging.slf4j.StrictLogging
import dregex.impl.LookaroundExpander
import dregex.impl.Optimizer
/**
* A parsed, but uncompiled regular expression.
*/
class ParsedRegex private[dregex] (val tree: RegexTree.Node) extends StrictLogging {
val optimized = Optimizer.optimize(tree)
logger.trace("optimized: " + optimized)
val metaTree = LookaroundExpander.expandLookarounds(optimized)
logger.trace("meta tree: " + metaTree)
}