package vm
- Alphabetic
- Public
- All
Type Members
- final case class Matched (start: Int, end: Int, saved: Vector[Int], threads: ThreadQueue) extends StepResult with Product with Serializable
- final case class Next (threads: ThreadQueue) extends StepResult with Product with Serializable
- final case class RThread (startIdx: Int, pc: Int, saved: Vector[Int]) extends Product with Serializable
- sealed trait StepResult extends AnyRef
-
class
ThreadQueue
extends AnyRef
An immutable queue that maintains a hashset of the contained thread's pc.
An immutable queue that maintains a hashset of the contained thread's pc. to allow for quick existence check.
Value Members
-
object
BytecodeImpl
extends RegexImpl with Serializable
This class provides a way to create and use regular expressions.
This class provides a way to create and use regular expressions. It is a non backtracking implementation based on the descrition from [Russ Cox](http://swtch.com/~rsc/regexp/). Following regular expressions are supported:
.any character, possibly including newline (s=true)[xyz]character class[^xyz]negated character class\da digit character (equivalent to[0-9])\Da non digit character (equivalent to[^0-9])\wan alphanumeric character (equivalent to[A-Za-z0-9_])\Wa non alphanumeric character (equivalent to[^A-Za-z0-9_])\sa space character (equivalent to[ \t\r\n\f])\Sa non space character (equivalent to[^ \t\r\n\f])xyxfollowed byyx|yxory(preferx)x*zero or morex(prefer more)x+one or morex(prefer more)x?zero or onex(prefer one)x*?zero or morex(prefer zero)x+?one or morex(prefer one)x??zero or onex(prefer zero)(re)numbered capturing group (starting at 1)re{min,max}bounded repetition (minandmaxare integers)re{min}bounded repetition (minis an integer)^start of input anchor$end of input anchor
- object ThreadQueue
-
object
VM
A virtual machine executing the regular expression code against some input.
A virtual machine executing the regular expression code against some input. A run on some input returns the first match if any. It is stateless, thus executing the same regular expression against the same input will always return the same result.
This is a thread safe, non-backtracking, tail-recursive implementation allowing for efficient stack-less executions.
Gnieh Tekstlib
Gnieh Tekstlib is a library grouping standard classes and packages allowing people to work with texts and documents.
Package Structure
gnieh.diffdiff manipulation,gnieh.hyphenhyphenation for text in any language,gnieh.stringstrings manipulation for text processing,gnieh.mustachelightweight mustache template engine,gnieh.pppretty printing related classes,gnieh.regexregular expressions manipulation.