trait CombParserHelpers extends AnyRef
The CombParserHelpers trait provides parser combinators helpers.
- Self Type
- CombParserHelpers with Parsers
- Alphabetic
- By Inheritance
- CombParserHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def EOF: Char
- def EOL: (CombParserHelpers.this)#Parser[Unit]
- returns
a parser discarding end of lines
- def aNumber: (CombParserHelpers.this)#Parser[Int]
- returns
a parser returning an Int if succeeding
- def aSpace: (CombParserHelpers.this)#Parser[Boolean]
- returns
a parser accepting a 'line' space, either ' ' or '\t'
- 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)
- def anyChar: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def colon: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- returns
a parser for a colon
- def digit: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- returns
a parser for a digit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEof(c: Char): Boolean
- returns
true if the character is an end of file
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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)
- def lineSpace: (CombParserHelpers.this)#Parser[List[Boolean]]
- returns
a unit parser for any repetition of 'line' spaces
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notEOF: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- def notEOL: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- def notEof(c: Char): Boolean
- returns
true if the character is not an end of file
- 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)
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def ns(in: List[(CombParserHelpers.this)#Elem]): String
- returns
a trimmed string of the input (a List of Elem)
- 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
- 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
- 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
- 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
- def slash: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- returns
a parser for a slash
- implicit def strToInput(in: String): (CombParserHelpers.this)#Input
- returns
a CharArray input build from a String
- implicit def strToLst(in: String): List[(CombParserHelpers.this)#Elem]
- returns
a list of elements (Elem) from a String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def white: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
alias for the wsc parser
- def whiteSpace: (CombParserHelpers.this)#Parser[Unit]
- returns
a unit parser for any repetition of whitespaces
- def wsc: (CombParserHelpers.this)#Parser[(CombParserHelpers.this)#Elem]
- returns
a whitespace parser
- def wsc(c: Char): Boolean
- returns
true if the character is a space character
- def xform(in: Char): Char