Fail

case class Fail(error: RbeError) extends Rbe[Nothing]

Fail RBE doesn't match

trait Rbe[Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def deriv[U](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

Value parameters:
controlled

defines the symbols that are allowed in closed expressions

open

allows extra symbols

x

symbol

Inherited from:
Rbe
def derivBag[U](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

Value parameters:
controlled

limits the extra symbols to those that don't appear in controlled

matched

bag of matched symbols

open

allows extra symbols

Inherited from:
Rbe
def nullable[U]: Either[Map[U, Int], Unit]

Checks if a rbe is nullable

Checks if a rbe is nullable

Inherited from:
Rbe
Inherited from:
Product

Inherited fields

Checks if a RBE contains repetitions

Checks if a RBE contains repetitions

Inherited from:
Rbe
lazy val symbols: Seq[Nothing]

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")
Inherited from:
Rbe