object RegularLanguage extends Serializable
- Alphabetic
- By Inheritance
- RegularLanguage
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Alt(left: RegularLanguage, right: RegularLanguage) extends RegularLanguage with Product with Serializable
Alt(left, right)represents the union of two regular languages.Alt(left, right)represents the union of two regular languages. We call it "Alt" for consistency with the names used in the "Parsing With Derivatives" paper. - final case class Cat(left: RegularLanguage, right: RegularLanguage) extends RegularLanguage with Product with Serializable
Cat(left, right)represents the concatenation of two regular languages. - final case class Permutation(values: RegularLanguage*) extends RegularLanguage with Product with Serializable
Permutation is like
Cat, but it is a commutative monoid.Permutation is like
Cat, but it is a commutative monoid. A Permutation(a_1, a_2, ..., a_{k}) is equivalent to the following language:a2 ~ Permutation(a_1, a_3, ..., a_k) | a1 ~ Permutation(a_2, a_3, ..., a_k) | ... ak ~ Permutation(a_1, a_2, ..., a_{k - 1})
So when we calculate its derivative, we apply the above "desugaring" transformation, then compute the derivative as usual.
- final case class PrimTypeToken(value: PrimType[Any]) extends Token with Product with Serializable
A
PrimTypeToken(value)language represents the regular language containing any stringsswherevalue.validate(s)succeeds. - final case class Rep(language: RegularLanguage, min: Option[Int], max: Option[Int]) extends RegularLanguage with Product with Serializable
Rep(language, min, max)represents the repetition oflanguage.Rep(language, min, max)represents the repetition oflanguage. The number of repetitions can be bounded viaminandmax. Settingmax=Nonerepresents the "Kleene star" oflanguage. - final case class StringToken(value: String) extends Token with Product with Serializable
A
StringToken(value)language represents the regular language that contains onlyvalue. - sealed trait Token extends RegularLanguage
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object AnyStringToken extends Token with Product with Serializable
AnyStringTokenrepresents the set of all strings.AnyStringTokenrepresents the set of all strings. For tab completion purposes, this is used to represent the name of the executable. (It may be aliased or renamed to be different thanCommand.Single.name.) - case object Empty extends RegularLanguage with Product with Serializable
The
Emptylanguage (∅) accepts no strings. - case object Epsilon extends RegularLanguage with Product with Serializable
The
Epsilonlanguage (ε) accepts only the empty string.