scalax.rules.example.ArithmeticEvaluator

trait ArithmeticEvaluator

trait ArithmeticEvaluator

 extends Scanners




Source: ArithmeticEvaluator.scala(15)

Direct Known Subclasses

ExampleUsage2, ExampleUsage,

 Fields

evaluate def evaluate Rule[S, S, Int, Any]
expr val expr Rule[Int]
factor val factor Rule[Int]
factory val factory RulesWithState RulesWithState
failure def failure Rule[Any, Nothing, Nothing, Nothing] Rules
get def get Rule[S, S, S, Nothing] StateRules
item abstract def item
Succeeds with the first element of the input unless input is empty
Rule[T] Parsers
newline def newline Rule[S, S, String, X] Scanners
nil def nil Rule[S, S, Nil, Nothing] StateRules
none def none Rule[S, S, None, Nothing] StateRules
number val number Rule[S, S, Int, X] with Name
term val term Rule[Int]
whitespace def whitespace Rule[S, S, List[Char], X] Scanners

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
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] StateRules
apply def apply[A, X](f : (S) => Result[S, A, X]) Rule[S, S, A, X] StateRules
asInstanceOf final def asInstanceOf[T0] T0 Any
choice def choice[C](seq : C)(implicit view$2 : (C) => Seq[T]) Rule[S, S, T, X] Parsers
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] StateRules
elem implicit def elem(t : T) Rule[S, S, T, X] Parsers
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
error def error[In] Rule[In, Nothing, Nothing, In] Rules
error def error[X](err : X) Rule[Any, Nothing, Nothing, X] Rules
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 Rules
finalize protected def finalize Unit AnyRef
from def from[In] Object Rules
getClass final def getClass Class[Any] AnyRef
hashCode def hashCode Int AnyRef
inElem implicit def inElem(t : T) InRule[S, S, T, X] Parsers
inRule implicit def inRule[In, Out, A, X](rule : Rule[In, Out, A, X]) InRule[In, Out, A, X] Rules
isInstanceOf final def isInstanceOf[T0] Boolean Any
iterableToChoice implicit def iterableToChoice[TS <: Iterable[T]](iterable : TS) Rule[T] Parsers
iterableToChoiceSeq implicit def iterableToChoiceSeq[TS <: Iterable[T]](iterable : TS) SeqRule[S, T, X] Parsers
iteratorToChoice implicit def iteratorToChoice[TS <: Iterator[T]](iterator : TS) Rule[T] Parsers
iteratorToChoiceSeq implicit def iteratorToChoiceSeq[TS <: Iterator[T]](iterator : TS) SeqRule[S, T, X] Parsers
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] Rules
read def read[A](f : (S) => A) Rule[S, S, A, Nothing] StateRules
readSeq def readSeq[C](seq : C)(implicit view$1 : (C) => Seq[T]) Rule[S, S, C, X] Parsers
readString implicit def readString(string : String) Rule[String] Scanners
readStringIn implicit def readStringIn(string : String) InRule[S, S, String, X] Scanners
rule implicit def rule[In, Out, A, X](f : (In) => Result[Out, A, X]) Rule[In, Out, A, X] Rules
ruleWithName def ruleWithName[In, Out, A, X](_name : String, f : (In) => Result[Out, A, X]) Rule[In, Out, A, X] with Name Rules
seqRule implicit def seqRule[In, A, X](rule : Rule[In, In, A, X]) SeqRule[In, A, X] Rules
set def set(s : => S) Rule[S, S, S, Nothing] StateRules
state def state[s] StateRules Rules
success def success[Out, A](out : Out, a : A) Rule[Any, Out, A, Nothing] Rules
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
toString def toString(seq : Seq[Any]) String Scanners
trim def trim[A](rule : Rule[A]) Rule[S, S, A, X] Scanners
unit def unit[A](a : => A) Rule[S, S, A, Nothing] StateRules
update def update(f : (S) => S) Rule[S, S, S, Nothing] StateRules
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2005-2008. All Rights Reserved.