scalax.rules

trait Scanners

[source: scalax/rules/Scanners.scala]

trait Scanners
extends Parsers[Char]
Rules that operate on a sequence of characters.
Direct Known Subclasses:
IncrementalScanners, StringScanners

Values and Variables inherited from RulesWithState
factory
Method Summary
def newline : Rule[S, S, java.lang.String, X]
implicit def readString (string : java.lang.String) : Rule[java.lang.String]
implicit def readStringIn (string : java.lang.String) : InRule[S, S, java.lang.String, X]
def toString (seq : scala.Seq[Any]) : java.lang.String
def trim [A](rule : Rule[A]) : Rule[S, S, A, X]
def whitespace : Rule[S, S, scala.List[Char], X]
Methods inherited from Parsers
item (abstract), elem, inElem, readSeq, choice, iterableToChoice, iterableToChoiceSeq, iteratorToChoice, iteratorToChoiceSeq
Methods inherited from StateRules
apply, unit, read, get, set, update, nil, none, cond, allOf
Methods inherited from Rules
rule, inRule, seqRule, from, state, success, failure, error, error, oneOf, ruleWithName, expect
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
implicit def readString(string : java.lang.String) : Rule[java.lang.String]

implicit def readStringIn(string : java.lang.String) : InRule[S, S, java.lang.String, X]

def toString(seq : scala.Seq[Any]) : java.lang.String

def whitespace : Rule[S, S, scala.List[Char], X]

def newline : Rule[S, S, java.lang.String, X]

def trim[A](rule : Rule[A]) : Rule[S, S, A, X]


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