net.liftweb.util

CombParserHelpers

trait CombParserHelpers extends AnyRef

The CombParserHelpers trait provides parser combinators helpers.

Self Type
CombParserHelpers with Parsers
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CombParserHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Elem = Char

    the type of input elements defined in the Parsers trait is Char

    the type of input elements defined in the Parsers trait is Char

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def EOL: (CombParserHelpers.this)#Parser[Unit]

    returns

    a parser discarding end of lines

  5. def aNumber: (CombParserHelpers.this)#Parser[Int]

    returns

    a parser returning an Int if succeeding

  6. def aSpace: (CombParserHelpers.this)#Parser[Boolean]

    returns

    a parser accepting a 'line' space, either ' ' or '\t'

  7. def acceptCI[ES](es: ES)(implicit arg0: (ES) ⇒ List[(CombParserHelpers.this)#Elem]): (CombParserHelpers.this)#Parser[List[(CombParserHelpers.this)#Elem]]

    returns

    a unit parser which will succeed if the input matches the list of characters regardless of the case (uppercase or lowercase)

  8. def anyChar: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def colon: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    returns

    a parser for a colon

  12. def digit: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    returns

    a parser for a digit

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def isEof(c: Char): Boolean

    returns

    true if the character is an end of file

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isNum(c: Char): Boolean

    returns

    true if the character is a digit.

    Note

    Currently, it supports the BMP (Basic Multilingual Plane) set from U+0000 to U+FFFF and not the supplementary characters having code points greater than U+FFFF.

    See also

    java.lang.Character#isDigit(char)

  21. def lineSpace: (CombParserHelpers.this)#Parser[List[Boolean]]

    returns

    a unit parser for any repetition of 'line' spaces

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def notEOF: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

  24. def notEOL: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

  25. def notEof(c: Char): Boolean

    returns

    true if the character is not an end of file

  26. def notNum(c: Char): Boolean

    returns

    true if the character is not a digit.

    Note

    Currently, it supports the BMP (Basic Multilingual Plane) set from U+0000 to U+FFFF and not the supplementary characters having code points greater than U+FFFF.

    See also

    java.lang.Character#isDigit(char)

  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. implicit def ns(in: List[(CombParserHelpers.this)#Elem]): String

    returns

    a trimmed string of the input (a List of Elem)

  30. def permute[T](func: (List[(CombParserHelpers.this)#Parser[T]]) ⇒ List[List[(CombParserHelpers.this)#Parser[T]]], p: (CombParserHelpers.this)#Parser[T]*): (CombParserHelpers.this)#Parser[List[T]]

    func

    list permutation function. Returns all permutations on the list or all permutations on the list plus all permutations on sublists for example

    returns

    a parser which tries the permutations of a list of parsers, given a permutation function

  31. def permute[T](p: (CombParserHelpers.this)#Parser[T]*): (CombParserHelpers.this)#Parser[List[T]]

    returns

    a parser which tries the permutations of a list of parsers

  32. def permuteAll[T](p: (CombParserHelpers.this)#Parser[T]*): (CombParserHelpers.this)#Parser[List[T]]

    returns

    a parser which tries the permutations of a list and sublists of parsers

  33. def repNN[T](n: Int, p: ⇒ (CombParserHelpers.this)#Parser[T]): (CombParserHelpers.this)#Parser[List[T]]

    returns

    a parser which parses the input using p a number of times

  34. def slash: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    returns

    a parser for a slash

  35. implicit def strToInput(in: String): (CombParserHelpers.this)#Input

    returns

    a CharArray input build from a String

  36. implicit def strToLst(in: String): List[(CombParserHelpers.this)#Elem]

    returns

    a list of elements (Elem) from a String

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def white: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    alias for the wsc parser

  43. def whiteSpace: (CombParserHelpers.this)#Parser[Unit]

    returns

    a unit parser for any repetition of whitespaces

  44. def wsc: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    returns

    a whitespace parser

  45. def wsc(c: Char): Boolean

    returns

    true if the character is a space character

  46. def xform(in: Char): Char

Inherited from AnyRef

Inherited from Any

Ungrouped