Rule
A Rule is a function from some input to a Result. The result may be:
-
Success, with a value of some type and an output that may serve as the input to subsequent rules.
-
Failure. A failure may result in some alternative rule being applied.
-
Error. No further rules should be attempted.
Attributes
- Source:
- Rule.scala
- Graph
- Supertypes
- Known subtypes
Members list
Value members
Concrete methods
Maps an Error
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Apply the result of this rule to the function returned by the previous rule
Apply the result of this rule to the function returned by the previous rule
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
^-^(f) is equivalent to ^^ { b2 => b1 => f(b1, b2) }
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
^~>~^(f) is equivalent to ^^ { case b2 ~ b3 => b1 => f(b1, b2, b3) }
^~^(f) is equivalent to ^^ { case b1 ~ b2 => f(b1, b2) }
^~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 => f(b1, b2, b3) }
^~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 => f(b1, b2, b3, b4) }
^~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 => f(b1, b2, b3, b4) }
Attributes
- Source:
- Rule.scala
^~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 => f(b1, b2, b3, b4, b5) }
^~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 => f(b1, b2, b3, b4, b5) }
Attributes
- Source:
- Rule.scala
^~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }
^~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }
Attributes
- Source:
- Rule.scala
^~~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }
^~~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Attributes
- Source:
- Rule.scala
Apply the result of this rule to the function returned by the next rule
Inherited methods
Attributes
- Inherited from:
- Function1
Attributes
- Inherited from:
- Function1
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns:
a string representation of the object.
- Definition Classes
- Function1 -> Any
- Inherited from:
- Function1
Abstract fields
Attributes
- Source:
- Rule.scala