Packages

t

net.liftweb.util

CombParserHelpers

trait CombParserHelpers extends AnyRef

The CombParserHelpers trait provides parser combinators helpers.

Self Type
CombParserHelpers with Parsers
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CombParserHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Elem = 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 EOF: Char
  5. def EOL: (CombParserHelpers.this)#Parser[Unit]

    returns

    a parser discarding end of lines

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

    returns

    a parser returning an Int if succeeding

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

    returns

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

  8. 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)

  9. def anyChar: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def colon: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    returns

    a parser for a colon

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

    returns

    a parser for a digit

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. def isEof(c: Char): Boolean

    returns

    true if the character is an end of file

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. 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)

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

    returns

    a unit parser for any repetition of 'line' spaces

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def notEOF: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
  25. def notEOL: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
  26. def notEof(c: Char): Boolean

    returns

    true if the character is not an end of file

  27. 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)

  28. final def notify(): Unit
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  30. implicit def ns(in: List[(CombParserHelpers.this)#Elem]): String

    returns

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

  31. 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

  32. 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

  33. 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

  34. 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

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

    returns

    a parser for a slash

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

    returns

    a CharArray input build from a String

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

    returns

    a list of elements (Elem) from a String

  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def white: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]

    alias for the wsc parser

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

    returns

    a unit parser for any repetition of whitespaces

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

    returns

    a whitespace parser

  46. def wsc(c: Char): Boolean

    returns

    true if the character is a space character

  47. def xform(in: Char): Char

Inherited from AnyRef

Inherited from Any

Ungrouped