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

dregex.ParsedRegex.scala Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy