object RegularLanguage extends Serializable
- Alphabetic
- By Inheritance
- RegularLanguage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 stringss
wherevalue.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 viamin
andmax
. Settingmax=None
represents 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( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
AnyStringToken extends Token with Product with Serializable
AnyStringToken
represents the set of all strings.AnyStringToken
represents 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
.) -
object
Empty extends RegularLanguage with Product with Serializable
The
Empty
language (∅) accepts no strings. -
object
Epsilon extends RegularLanguage with Product with Serializable
The
Epsilon
language (ε) accepts only the empty string.