o

info.kwarc.mmt.oeis.parser

FormulaParserTest

object FormulaParserTest extends FormulaParser

Source
FormulaParser.scala
Linear Supertypes
FormulaParser, PackratParsers, JavaTokenParsers, RegexParsers, Parsers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormulaParserTest
  2. FormulaParser
  3. PackratParsers
  4. JavaTokenParsers
  5. RegexParsers
  6. Parsers
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Elem = Char
    Definition Classes
    RegexParsers → Parsers
  2. case class Error extends NoSuccess with Product with Serializable
    Definition Classes
    Parsers
  3. case class Failure extends NoSuccess with Product with Serializable
    Definition Classes
    Parsers
  4. type Input = Reader[Elem]
    Definition Classes
    Parsers
  5. sealed abstract class NoSuccess extends ParseResult[Nothing]
    Definition Classes
    Parsers
  6. trait OnceParser[+T] extends Parser[T]
    Definition Classes
    Parsers
  7. abstract class PackratParser[+T] extends scala.util.parsing.combinator.PackratParsers.Parser[T]
    Definition Classes
    PackratParsers
  8. class PackratReader[+T] extends Reader[T]
    Definition Classes
    PackratParsers
  9. sealed abstract class ParseResult[+T] extends AnyRef
    Definition Classes
    Parsers
  10. abstract class Parser[+T] extends (Input) ⇒ ParseResult[T]
    Definition Classes
    Parsers
  11. case class Success[+T] extends ParseResult[T] with Product with Serializable
    Definition Classes
    Parsers
  12. case class ~[+a, +b] extends Product with Serializable
    Definition Classes
    Parsers

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 OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]
    Definition Classes
    Parsers
  5. def Parser[T](f: (Input) ⇒ ParseResult[T]): Parser[T]
    Definition Classes
    Parsers
  6. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
    Definition Classes
    Parsers
  7. def accept[ES](es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]
    Definition Classes
    Parsers
  8. implicit def accept(e: Elem): Parser[Elem]
    Definition Classes
    Parsers
  9. def acceptIf(p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]
    Definition Classes
    Parsers
  10. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
    Definition Classes
    Parsers
  11. def acceptSeq[ES](es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]
    Definition Classes
    Parsers
  12. def addFunc(function: String, throwable: Boolean = true): HashSet[String]
    Definition Classes
    FormulaParser
  13. def addVar(variable: String, throwable: Boolean = true): HashSet[String]
    Definition Classes
    FormulaParser
  14. def applyFunctionsInOrder(exprs: List[Expression], funcs: List[(Expression, Expression) ⇒ Expression]): Expression
    Definition Classes
    FormulaParser
  15. lazy val argument: PackratParser[Expression]
    Definition Classes
    FormulaParser
  16. lazy val argument_suffix: PackratParser[Expression]
    Definition Classes
    FormulaParser
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. lazy val c_expression: PackratParser[Expression]
    Definition Classes
    FormulaParser
  19. lazy val c_expression_iters: PackratParser[Expression]
    Definition Classes
    FormulaParser
  20. var calls: BigInt
    Definition Classes
    FormulaParser
  21. lazy val cbracket: PackratParser[String]
    Definition Classes
    FormulaParser
  22. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]
    Definition Classes
    Parsers
  23. def chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]
    Definition Classes
    Parsers
  24. def chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]
    Definition Classes
    Parsers
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def commit[T](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    Parsers
  27. lazy val comparison: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  28. lazy val constant: PackratParser[String]
    Definition Classes
    FormulaParser
  29. lazy val date: String
    Definition Classes
    FormulaParser
  30. def decimalNumber: Parser[String]
    Definition Classes
    JavaTokenParsers
  31. lazy val delim: Regex
    Definition Classes
    FormulaParser
  32. val dictionary: Set[String]
    Definition Classes
    FormulaParser
  33. lazy val divisible: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  34. lazy val dots: PackratParser[String]
    Definition Classes
    FormulaParser
  35. def elem(e: Elem): Parser[Elem]
    Definition Classes
    Parsers
  36. def elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]
    Definition Classes
    Parsers
  37. lazy val elem: PackratParser[String]
    Definition Classes
    FormulaParser
  38. lazy val element: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  39. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  41. def err(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  42. val exceptionCases: Regex
    Definition Classes
    FormulaParser
  43. var exceptions: BigInt
    Definition Classes
    FormulaParser
  44. lazy val expression: PackratParser[Expression]
    Definition Classes
    FormulaParser
  45. lazy val expression_iters: PackratParser[Expression]
    Definition Classes
    FormulaParser
  46. lazy val factor: PackratParser[Expression]
    Definition Classes
    FormulaParser
  47. def failure(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  48. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def floatingPointNumber: Parser[String]
    Definition Classes
    JavaTokenParsers
  50. lazy val formulas: PackratParser[Expression]
    Definition Classes
    FormulaParser
  51. lazy val function: PackratParser[String]
    Definition Classes
    FormulaParser
  52. var functions: HashSet[String]
    Definition Classes
    FormulaParser
  53. lazy val generating_function: Parser[String]
    Definition Classes
    FormulaParser
  54. lazy val generating_function_def: Regex
    Definition Classes
    FormulaParser
  55. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  56. def guard[T](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    Parsers
  57. def handleWhiteSpace(source: CharSequence, offset: Int): Int
    Attributes
    protected
    Definition Classes
    RegexParsers
  58. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  59. def ident: Parser[String]
    Definition Classes
    JavaTokenParsers
  60. lazy val infix_ops: Parser[AnyRef]
    Definition Classes
    FormulaParser
  61. def initSet(): Unit
    Definition Classes
    FormulaParser
  62. def isInDictionary(word: String): Boolean
    Definition Classes
    FormulaParser
  63. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  64. lazy val lazy_multiply: PackratParser[Expression]
    Definition Classes
    FormulaParser
  65. implicit def literal(s: String): Parser[String]
    Definition Classes
    RegexParsers
  66. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]
    Definition Classes
    Parsers
  67. def logger: SilentLogger
    Definition Classes
    FormulaParser
  68. def main(args: Array[String]): Unit
  69. def memo[T](p: Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers
  70. def mkList[T]: (~[T, List[T]]) ⇒ List[T]
    Definition Classes
    Parsers
  71. lazy val mod: PackratParser[String]
    Definition Classes
    FormulaParser
  72. lazy val modulo: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  73. lazy val month: String
    Definition Classes
    FormulaParser
  74. lazy val multdiv: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  75. lazy val multiply: PackratParser[~[(Expression, Expression) ⇒ Expression, Expression]]
    Definition Classes
    FormulaParser
  76. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  77. lazy val no_bracket_function: Parser[String]
    Definition Classes
    FormulaParser
  78. def not[T](p: ⇒ Parser[T]): Parser[Unit]
    Definition Classes
    Parsers
  79. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  80. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  81. lazy val number: PackratParser[String]
    Definition Classes
    FormulaParser
  82. lazy val obracket: PackratParser[String]
    Definition Classes
    FormulaParser
  83. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]
    Definition Classes
    Parsers
  84. def parse(line: String, theory: String = ""): Option[Expression]
    Definition Classes
    FormulaParser
  85. def parse[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  86. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  87. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  88. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  89. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  90. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  91. def parseQuery(line: String, theory: String = ""): Option[String]
    Definition Classes
    FormulaParser
  92. implicit def parser2packrat[T](p: ⇒ Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers
  93. def phrase[T](p: Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers → Parsers
  94. lazy val plusminus: PackratParser[(Expression, Expression) ⇒ Expression]
    Definition Classes
    FormulaParser
  95. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    RegexParsers → Parsers
  96. def postProcess(expression: Expression): Expression
    Definition Classes
    FormulaParser
  97. def printToFile(f: File)(op: (PrintWriter) ⇒ Unit): Unit
    Definition Classes
    FormulaParser
  98. lazy val reference: Regex
    Definition Classes
    FormulaParser
  99. implicit def regex(r: Regex): Parser[String]
    Definition Classes
    RegexParsers
  100. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  101. def rep1[T](first: ⇒ Parser[T], p0: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  102. def rep1[T](p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  103. def rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  104. def repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  105. def repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  106. lazy val sen_cbracket: PackratParser[String]
    Definition Classes
    FormulaParser
  107. lazy val sen_obracket: PackratParser[String]
    Definition Classes
    FormulaParser
  108. lazy val sentence: PackratParser[Sentence]
    Definition Classes
    FormulaParser
  109. lazy val sentence_cont: PackratParser[List[Expression]]
    Definition Classes
    FormulaParser
  110. lazy val signed_factor: PackratParser[Expression]
    Definition Classes
    FormulaParser
  111. lazy val signed_term: PackratParser[Expression]
    Definition Classes
    FormulaParser
  112. val skipWhitespace: Boolean
    Definition Classes
    FormulaParser → RegexParsers
  113. def stringLiteral: Parser[String]
    Definition Classes
    JavaTokenParsers
    Annotations
    @migration
    Migration

    (Changed in version 2.10.0) stringLiteral allows escaping single and double quotes, but not forward slashes any longer.

  114. var succeded: BigInt
    Definition Classes
    FormulaParser
  115. def success[T](v: T): Parser[T]
    Definition Classes
    Parsers
  116. lazy val suffix_functions: PackratParser[String]
    Definition Classes
    FormulaParser
  117. lazy val sum: PackratParser[String]
    Definition Classes
    FormulaParser
  118. lazy val sum_op: PackratParser[((Expression, Expression) ⇒ Expression, Expression)]
    Definition Classes
    FormulaParser
  119. lazy val sum_op_iters: PackratParser[((Expression, Expression) ⇒ Expression, Expression)]
    Definition Classes
    FormulaParser
  120. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  121. lazy val term: PackratParser[Expression]
    Definition Classes
    FormulaParser
  122. lazy val term_no_fact: PackratParser[Expression]
    Definition Classes
    FormulaParser
  123. def toString(): String
    Definition Classes
    AnyRef → Any
  124. lazy val unary_plusminus: PackratParser[String]
    Definition Classes
    FormulaParser
  125. lazy val unsigned_factor: PackratParser[Expression]
    Definition Classes
    FormulaParser
  126. lazy val value: PackratParser[Expression]
    Definition Classes
    FormulaParser
  127. def varToFunc(left: Expression, right: Mul): Mul
    Definition Classes
    FormulaParser
  128. lazy val variable: PackratParser[String]
    Definition Classes
    FormulaParser
  129. var variables: HashSet[String]
    Definition Classes
    FormulaParser
  130. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  131. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  132. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  133. val whiteSpace: Regex
    Attributes
    protected
    Definition Classes
    RegexParsers
  134. def wholeNumber: Parser[String]
    Definition Classes
    JavaTokenParsers
  135. lazy val word: Regex
    Definition Classes
    FormulaParser
  136. lazy val words: PackratParser[List[Expression]]
    Definition Classes
    FormulaParser
  137. lazy val words_inbracket: PackratParser[List[Expression]]
    Definition Classes
    FormulaParser
  138. object NoSuccess
    Definition Classes
    Parsers

Inherited from FormulaParser

Inherited from PackratParsers

Inherited from JavaTokenParsers

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped