Trait

net.liftweb.util

CombParserHelpers

Related Doc: package util

Permalink

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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def EOF: Char

    Permalink
  5. def EOL: (CombParserHelpers.this)#Parser[Unit]

    Permalink

    returns

    a parser discarding end of lines

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

    Permalink

    returns

    a parser returning an Int if succeeding

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

    Permalink

    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]]

    Permalink

    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]

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Permalink

    returns

    a parser for a colon

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

    Permalink

    returns

    a parser for a digit

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

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

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

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

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

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

    Permalink

    returns

    true if the character is an end of file

  20. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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]]

    Permalink

    returns

    a unit parser for any repetition of 'line' spaces

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

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

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

    Permalink
  26. def notEof(c: Char): Boolean

    Permalink

    returns

    true if the character is not an end of file

  27. def notNum(c: Char): Boolean

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

    Permalink

    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]]

    Permalink

    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]]

    Permalink

    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]]

    Permalink

    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]]

    Permalink

    returns

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

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

    Permalink

    returns

    a parser for a slash

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

    Permalink

    returns

    a CharArray input build from a String

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

    Permalink

    returns

    a list of elements (Elem) from a String

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

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

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

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

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

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

    Permalink

    alias for the wsc parser

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

    Permalink

    returns

    a unit parser for any repetition of whitespaces

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

    Permalink

    returns

    a whitespace parser

  46. def wsc(c: Char): Boolean

    Permalink

    returns

    true if the character is a space character

  47. def xform(in: Char): Char

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped