scalax.rules

class SeqRule

[source: scalax/rules/SeqRule.scala]

class SeqRule[S, +A, +X](rule : Rule[S, S, A, X])
extends AnyRef
Method Summary
def * : Rule[S, S, scala.List[A], X]
def */ [X2 >: X](sep : => Rule[S, S, Any, X2]) : Rule[S, S, scala.List[A], X2]
Repeats this rule zero or more times with a separator (which is discarded)
def *~- [Out, X2 >: X](end : => Rule[S, Out, Any, X2]) : Rule[S, Out, scala.List[A], X2]
def + : Rule[S, S, scala.List[A], X]
def +/ [X2 >: X](sep : => Rule[S, S, Any, X2]) : Rule[S, S, scala.List[A], X2]
Repeats this rule one or more times with a separator (which is discarded)
def +~- [Out, X2 >: X](end : => Rule[S, Out, Any, X2]) : Rule[S, Out, scala.List[A], X2]
def -? : Rule[S, S, Boolean, X]
Creates a rule that always succeeds with a Boolean value. Value is 'true' if this rule succeeds, 'false' otherwise
def ? : Rule[S, S, scala.Option[A], X]
def ~*~ [B >: A, X2 >: X](join : => Rule[S, S, (B, B) => B, X2]) : Rule[S, S, B, X2]
def ~>* [B >: A, X2 >: X](f : => Rule[S, S, (B) => B, X2]) : Rule[S, S, B, X2]
def ~>? [B >: A, X2 >: X](f : => Rule[S, S, (B) => B, X2]) : Rule[S, S, B, X2]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def ? : Rule[S, S, scala.Option[A], X]

def -? : Rule[S, S, Boolean, X]
Creates a rule that always succeeds with a Boolean value. Value is 'true' if this rule succeeds, 'false' otherwise

def * : Rule[S, S, scala.List[A], X]

def + : Rule[S, S, scala.List[A], X]

def ~>?[B >: A, X2 >: X](f : => Rule[S, S, (B) => B, X2]) : Rule[S, S, B, X2]

def ~>*[B >: A, X2 >: X](f : => Rule[S, S, (B) => B, X2]) : Rule[S, S, B, X2]

def ~*~[B >: A, X2 >: X](join : => Rule[S, S, (B, B) => B, X2]) : Rule[S, S, B, X2]

def +/[X2 >: X](sep : => Rule[S, S, Any, X2]) : Rule[S, S, scala.List[A], X2]
Repeats this rule one or more times with a separator (which is discarded)

def */[X2 >: X](sep : => Rule[S, S, Any, X2]) : Rule[S, S, scala.List[A], X2]
Repeats this rule zero or more times with a separator (which is discarded)

def *~-[Out, X2 >: X](end : => Rule[S, Out, Any, X2]) : Rule[S, Out, scala.List[A], X2]

def +~-[Out, X2 >: X](end : => Rule[S, Out, Any, X2]) : Rule[S, Out, scala.List[A], X2]


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.