scala.util.parsing.combinator

trait RegexParsers

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

trait RegexParsers
extends Parsers
Direct Known Subclasses:
JavaTokenParsers, RegexTest

Type Summary
type Elem
the type of input elements
Value Summary
protected val whiteSpace : Regex
Values and Variables inherited from Parsers
lastNoSuccess
Method Summary
protected def handleWhiteSpace (source : java.lang.CharSequence, offset : Int) : Int
implicit def literal (s : java.lang.String) : Parser[java.lang.String]
A parser that matches a literal string
def parse [T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
Parse some prefix of reader `in' with parser `p'
def parse [T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Parse some prefix of character sequence `in' with parser `p'
def parse [T](p : Parser[T], in : Reader[Char]) : ParseResult[T]
Parse some prefix of reader `in' with parser `p'
def parseAll [T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
Parse all of reader `in' with parser `p'
def parseAll [T](p : Parser[T], in : Reader[Char]) : ParseResult[T]
Parse all of reader `in' with parser `p'
def parseAll [T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Parse all of character sequence `in' with parser `p'
override def phrase [T](p : Parser[T]) : Parser[T]
implicit def regex (r : Regex) : Parser[java.lang.String]
A parser that matches a regex string
def skipWhitespace : Boolean
Methods inherited from Parsers
Parser, OnceParser, commit, elem, elem, accept, accept, accept, acceptIf, acceptMatch, acceptSeq, failure, err, success, log, rep, repsep, rep1, rep1, repN, rep1sep, chainl1, chainl1, chainr1, opt, not, positioned, mkList
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
type Elem
the type of input elements

Value Details
protected val whiteSpace : Regex

Method Details
def skipWhitespace : Boolean

protected def handleWhiteSpace(source : java.lang.CharSequence, offset : Int) : Int

implicit def literal(s : java.lang.String) : Parser[java.lang.String]
A parser that matches a literal string

implicit def regex(r : Regex) : Parser[java.lang.String]
A parser that matches a regex string

override def phrase[T](p : Parser[T]) : Parser[T]

A parser generator delimiting whole phrases (i.e. programs).

phrase(p) succeeds if p succeeds and no input is left over after p.

Parameters
p - the parser that must consume all input for the resulting parser to succeed.
Returns
a parser that has the same result as `p', but that only succeeds if p consumed all the input.
Overrides
Parsers.phrase

def parse[T](p : Parser[T], in : Reader[Char]) : ParseResult[T]
Parse some prefix of reader `in' with parser `p'

def parse[T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Parse some prefix of character sequence `in' with parser `p'

def parse[T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
Parse some prefix of reader `in' with parser `p'

def parseAll[T](p : Parser[T], in : Reader[Char]) : ParseResult[T]
Parse all of reader `in' with parser `p'

def parseAll[T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
Parse all of reader `in' with parser `p'

def parseAll[T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Parse all of character sequence `in' with parser `p'