scalax.rules.StateRules

trait StateRules

trait StateRules

 extends ScalaObject


A factory for rules that apply to a particular context. @requires S the context to which rules apply.
author
- Andrew Foggin Inspired by the Scala parser combinator.


Source: Rules.scala(76)

Direct Known Subclasses

RulesWithState,

 Fields

factory abstract val factory Rules
get def get Rule[S, S, S, Nothing]
nil def nil Rule[S, S, Nil, Nothing]
none def none Rule[S, S, None, 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
allOf def allOf[A, X](rules : Seq[Rule[A, X]])
Create a rule that succeeds if all of the given rules succeed [details]
param
rules - the rules to apply in sequence.
return
- the results as a list.
Rule[List[A], X]
apply def apply[A, X](f : (S) => Result[S, A, X]) Rule[S, S, A, X]
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
cond def cond(f : (S) => Boolean)
Create a rule that suceeds if f(in) is true
Rule[S, S, S, Nothing]
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Any] AnyRef
hashCode def hashCode Int AnyRef
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
read def read[A](f : (S) => A) Rule[S, S, A, Nothing]
set def set(s : => S) Rule[S, S, S, Nothing]
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
unit def unit[A](a : => A) Rule[S, S, A, Nothing]
update def update(f : (S) => S) Rule[S, S, S, Nothing]
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.