Scala Library
|
|
trait
RegexParsers
extends
ParsersType 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 : 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
|
parseAll
[T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Parse all of character sequence `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'
|
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 |
Value Details |
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]
implicit
def
regex(r : Regex) : Parser[java.lang.String]
A parser generator delimiting whole phrases (i.e. programs).
phrase(p)
succeeds if p
succeeds and
no input is left over after p
.
p -
the parser that must consume all input for the resulting parser to succeed.p
consumed all the input.
def
parse[T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
def
parse[T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
def
parseAll[T](p : Parser[T], in : java.io.Reader) : ParseResult[T]
def
parseAll[T](p : Parser[T], in : java.lang.CharSequence) : ParseResult[T]
Scala Library
|
|