net.liftweb.util.CombParserHelpers

trait CombParserHelpers

trait CombParserHelpers

 extends ScalaObject


The CombParserHelpers trait provides parser combinators helpers


Source: CombParserHelpers.scala(22)

 Fields

EOL.. def EOL
[details]
return
- a parser discarding end of lines
Parser[Unit]
aNumber.. def aNumber
[details]
return
- a parser returning an Int if succeeding
Parser[Int]
aSpace.. def aSpace
[details]
return
- a parser accepting a 'line' space, either ' ' or '\t'
Parser[Boolean]
anyChar.. def anyChar Parser[Char]
colon.. def colon
[details]
return
- a parser for a colon
Parser[Char]
digit.. def digit
[details]
return
- a parser for a digit
Parser[Char]
lineSpace.. def lineSpace
[details]
return
- a unit parser for any repetition of 'line' spaces
Parser[List[Boolean]]
notEOF.. def notEOF Parser[Char]
notEOL.. def notEOL Parser[Char]
slash.. def slash
[details]
return
- a parser for a slash
Parser[Char]
white.. def white
alias for the wsc parser
Parser[Char]
whiteSpace.. def whiteSpace
[details]
return
- a unit parser for any repetition of whitespaces
Parser[Unit]
wsc.. def wsc
[details]
return
- a whitespace parser
Parser[Char]

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
acceptCI.. def acceptCI[ES](es : ES)(implicit view$1 : (ES) => List[Char])
[details]
param
elements - list of characters
return
- a unit parser which will succeed if the input matches the list of characters regardless of the case (uppercase or lowercase)
Parser[List[Char]]
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isEof.. def isEof(c : Char)
[details]
return
- true if the character is an end of file
Boolean
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
isNum.. def isNum(c : Char)
[details]
return
- true if the character is a digit
Boolean
ne.. final def ne(arg0 : Object) Boolean AnyRef
notEof.. def notEof(c : Char)
[details]
return
- true if the character is not an end of file
Boolean
notNum.. def notNum(c : Char)
[details]
return
- true if the character is not a digit
Boolean
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
ns.. implicit def ns(in : List[Char])
[details]
return
- a trimmed string of the input (a List of Elem)
String
permute.. def permute[T](p : Parser[T]*)
[details]
return
- a parser which tries the permutations of a list of parsers
Parser[List[T]]
permute.. def permute[T](func : (List[Parser[T]]) => List[List[Parser[T]]], p : Parser[T]*)
[details]
param
func - list permutation function. Returns all permutations on the list or all permutations on the list plus all permutations on sublists for example
return
- a parser which tries the permutations of a list of parsers, given a permutation function
Parser[List[T]]
permuteAll.. def permuteAll[T](p : Parser[T]*)
[details]
return
- a parser which tries the permutations of a list and sublists of parsers
Parser[List[T]]
repNN.. def repNN[T](n : Int, p : => Parser[T])
[details]
return
- a parser which parses the input using p a number of times
Parser[List[T]]
strToInput.. implicit def strToInput(in : String)
[details]
return
- a CharArray input build from a String
Reader
strToLst.. implicit def strToLst(in : String)
[details]
return
- a list of elements (Elem) from a String
List[Char]
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wsc.. def wsc(c : Char)
[details]
return
- true if the character is a space character
Boolean
xform.. def xform(in : Char) Char
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.