scalax.rules.Rules

trait Rules

trait Rules

 extends ScalaObject


A factory for rules.
author
- Andrew Foggin Inspired by the Scala parser combinator.


Source: Rules.scala(26)

Direct Known Subclasses

MemoisableRules, RulesWithState, ParamMatcher,

Nested Classes

DefaultRule,

 Fields

failure def failure Rule[Any, Nothing, Nothing, Nothing]

 Methods

!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
error def error[X](err : X) Rule[Any, Nothing, Nothing, X]
error def error[In] Rule[In, Nothing, Nothing, In]
expect def expect[In, Out, A, Any](rule : Rule[In, Out, A, Any])
Converts a rule into a function that throws an Exception on failure
(In) => A
finalize protected def finalize Unit AnyRef
from def from[In] Object
getClass final def getClass Class[Any] AnyRef
hashCode def hashCode Int AnyRef
inRule implicit def inRule[In, Out, A, X](rule : Rule[In, Out, A, X]) InRule[In, Out, A, X]
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
oneOf def oneOf[In, Out, A, X](rules : Seq[Rule[In, Out, A, X]]) Rule[In, Out, A, X]
rule implicit def rule[In, Out, A, X](f : (In) => Result[Out, A, X]) Rule[In, Out, A, X]
ruleWithName def ruleWithName[In, Out, A, X](_name : String, f : (In) => Result[Out, A, X]) Rule[In, Out, A, X] with Name
seqRule implicit def seqRule[In, A, X](rule : Rule[In, In, A, X]) SeqRule[In, A, X]
state def state[s] StateRules
success def success[Out, A](out : Out, a : A) Rule[Any, Out, A, Nothing]
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
Copyright (c) 2005-2008. All Rights Reserved.