scala.util.parsing.combinator.Parsers

trait UnitOnceParser

[source: scala/util/parsing/combinator/Parsers.scala]

trait UnitOnceParser
extends UnitParser
A parser whose ~ combinator disallows back-tracking.
Method Summary
override def ~ [U](q : => Parser[U]) : Parser[U]
A parser combinator for sequential composition

`p ~ q' succeeds if `p' succeeds and `q' succeeds on the input left over by `p'.

override def ~ [A](q : => A)(implicit view$21 : (A) => UnitParser) : UnitParser
A parser combinator for sequential composition with a unit-parser

`p ~ q' succeeds if `p' succeeds and `q' succeeds on the input left over by `p'.

Methods inherited from UnitParser
apply (abstract), ~!, ~!, |, |||, ^^
Methods inherited from Function1
toString, compose, andThen
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def ~[U](q : => Parser[U]) : Parser[U]
A parser combinator for sequential composition

`p ~ q' succeeds if `p' succeeds and `q' succeeds on the input left over by `p'.

Parameters
q - a parser that will be executed after `p' (this parser) succeeds
Returns
a `Parser' that -- on success -- returns the result of `q'. The resulting parser fails if either `p' or `q' fails.
Overrides
UnitParser.~

override def ~[A](q : => A)(implicit view$21 : (A) => UnitParser) : UnitParser
A parser combinator for sequential composition with a unit-parser

`p ~ q' succeeds if `p' succeeds and `q' succeeds on the input left over by `p'.

Parameters
q - a parser (convertible to a UnitParser) that will be executed after `p' (this parser) succeeds
Returns
a `UnitParser' that fails if either `p' or `q' fails.
Overrides
UnitParser.~