case class Symbol[+A](a: A, n: Int, m: IntOrUnbounded) extends Rbe[A] with Product with Serializable
Represents a symbol that is repeated between n and m times (m can be unbounded)
- Source
- Rbe.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Symbol
- Rbe
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Symbol(a: A, n: Int, m: IntOrUnbounded)
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
- val a: A
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
lazy val
containsRepeats: Boolean
Checks if a RBE contains repetitions
Checks if a RBE contains repetitions
- Definition Classes
- Rbe
-
def
deriv[U >: A](x: U, open: Boolean, controlled: Seq[U])(implicit r: Show[U]): Rbe[U]
derivative of this RBE with regards to a symbol
derivative of this RBE with regards to a symbol
- x
symbol
- open
allows extra symbols
- controlled
defines the symbols that are allowed in closed expressions
- Definition Classes
- Rbe
-
def
derivBag[U >: A](bag: Bag[U], open: Boolean, controlled: Seq[U])(implicit r: Show[U]): Rbe[U]
Derivative over a bag of symbols
Derivative over a bag of symbols
- open
allows extra symbols
- controlled
limits the extra symbols to those that don't appear in controlled
- Definition Classes
- Rbe
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val m: IntOrUnbounded
- val n: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
nullable[U >: A]: Either[Map[U, Int], Unit]
Checks if a rbe is nullable
Checks if a rbe is nullable
- Definition Classes
- Rbe
-
lazy val
symbols: Seq[A]
Symbols that contains this rbe
Symbols that contains this rbe
Example:
symbols(Or(And(Symbol("a",1,3),Symbol("b",1,1)),Symbol("b",2,3))) == Seq("a","b")
- Definition Classes
- Rbe
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )