scalax.rules

trait Parsers

[source: scalax/rules/Parsers.scala]

trait Parsers[T]
extends RulesWithState
Rules that operate on sequential input
Direct Known Subclasses:
IncrementalParsers, Scanners

Type Summary
type Parser
abstract type X
Values and Variables inherited from RulesWithState
factory
Method Summary
def choice [C](seq : C)(implicit view$2 : (C) => scala.Seq[T]) : Rule[S, S, T, X]
implicit def elem (t : T) : Rule[S, S, T, X]
implicit def inElem (t : T) : InRule[S, S, T, X]
abstract def item : Rule[T]
Succeeds with the first element of the input unless input is empty.
implicit def iterableToChoice [TS <: scala.Iterable[T]](iterable : TS) : Rule[T]
implicit def iterableToChoiceSeq [TS <: scala.Iterable[T]](iterable : TS) : SeqRule[S, T, X]
implicit def iteratorToChoice [TS <: scala.Iterator[T]](iterator : TS) : Rule[T]
implicit def iteratorToChoiceSeq [TS <: scala.Iterator[T]](iterator : TS) : SeqRule[S, T, X]
def readSeq [C](seq : C)(implicit view$1 : (C) => scala.Seq[T]) : Rule[S, S, C, X]
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
Type Details
abstract type X

type Parser

Method Details
abstract def item : Rule[T]
Succeeds with the first element of the input unless input is empty.

implicit def elem(t : T) : Rule[S, S, T, X]

implicit def inElem(t : T) : InRule[S, S, T, X]

def readSeq[C](seq : C)(implicit view$1 : (C) => scala.Seq[T]) : Rule[S, S, C, X]

def choice[C](seq : C)(implicit view$2 : (C) => scala.Seq[T]) : Rule[S, S, T, X]

implicit def iterableToChoice[TS <: scala.Iterable[T]](iterable : TS) : Rule[T]

implicit def iterableToChoiceSeq[TS <: scala.Iterable[T]](iterable : TS) : SeqRule[S, T, X]

implicit def iteratorToChoice[TS <: scala.Iterator[T]](iterator : TS) : Rule[T]

implicit def iteratorToChoiceSeq[TS <: scala.Iterator[T]](iterator : TS) : SeqRule[S, T, X]


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