object FormulaParserTest extends FormulaParser
- Source
- FormulaParser.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FormulaParserTest
- FormulaParser
- PackratParsers
- JavaTokenParsers
- RegexParsers
- Parsers
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
Elem = Char
- Definition Classes
- RegexParsers → Parsers
-
case class
Error extends NoSuccess with Product with Serializable
- Definition Classes
- Parsers
-
case class
Failure extends NoSuccess with Product with Serializable
- Definition Classes
- Parsers
-
type
Input = Reader[Elem]
- Definition Classes
- Parsers
-
sealed abstract
class
NoSuccess extends ParseResult[Nothing]
- Definition Classes
- Parsers
-
trait
OnceParser[+T] extends Parser[T]
- Definition Classes
- Parsers
-
abstract
class
PackratParser[+T] extends scala.util.parsing.combinator.PackratParsers.Parser[T]
- Definition Classes
- PackratParsers
-
class
PackratReader[+T] extends Reader[T]
- Definition Classes
- PackratParsers
-
sealed abstract
class
ParseResult[+T] extends AnyRef
- Definition Classes
- Parsers
-
abstract
class
Parser[+T] extends (Input) ⇒ ParseResult[T]
- Definition Classes
- Parsers
-
case class
Success[+T] extends ParseResult[T] with Product with Serializable
- Definition Classes
- Parsers
-
case class
~[+a, +b] extends Product with Serializable
- Definition Classes
- Parsers
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
OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]
- Definition Classes
- Parsers
-
def
Parser[T](f: (Input) ⇒ ParseResult[T]): Parser[T]
- Definition Classes
- Parsers
-
def
accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
- Definition Classes
- Parsers
-
def
accept[ES](es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]
- Definition Classes
- Parsers
-
implicit
def
accept(e: Elem): Parser[Elem]
- Definition Classes
- Parsers
-
def
acceptIf(p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]
- Definition Classes
- Parsers
-
def
acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
- Definition Classes
- Parsers
-
def
acceptSeq[ES](es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]
- Definition Classes
- Parsers
-
def
addFunc(function: String, throwable: Boolean = true): HashSet[String]
- Definition Classes
- FormulaParser
-
def
addVar(variable: String, throwable: Boolean = true): HashSet[String]
- Definition Classes
- FormulaParser
-
def
applyFunctionsInOrder(exprs: List[Expression], funcs: List[(Expression, Expression) ⇒ Expression]): Expression
- Definition Classes
- FormulaParser
-
lazy val
argument: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
argument_suffix: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
c_expression: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
c_expression_iters: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
var
calls: BigInt
- Definition Classes
- FormulaParser
-
lazy val
cbracket: PackratParser[String]
- Definition Classes
- FormulaParser
-
def
chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]
- Definition Classes
- Parsers
-
def
chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]
- Definition Classes
- Parsers
-
def
chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]
- Definition Classes
- Parsers
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
commit[T](p: ⇒ Parser[T]): Parser[T]
- Definition Classes
- Parsers
-
lazy val
comparison: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
lazy val
constant: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
date: String
- Definition Classes
- FormulaParser
-
def
decimalNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
-
lazy val
delim: Regex
- Definition Classes
- FormulaParser
-
val
dictionary: Set[String]
- Definition Classes
- FormulaParser
-
lazy val
divisible: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
lazy val
dots: PackratParser[String]
- Definition Classes
- FormulaParser
-
def
elem(e: Elem): Parser[Elem]
- Definition Classes
- Parsers
-
def
elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]
- Definition Classes
- Parsers
-
lazy val
elem: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
element: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
err(msg: String): Parser[Nothing]
- Definition Classes
- Parsers
-
val
exceptionCases: Regex
- Definition Classes
- FormulaParser
-
var
exceptions: BigInt
- Definition Classes
- FormulaParser
-
lazy val
expression: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
expression_iters: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
factor: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
def
failure(msg: String): Parser[Nothing]
- Definition Classes
- Parsers
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
floatingPointNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
-
lazy val
formulas: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
function: PackratParser[String]
- Definition Classes
- FormulaParser
-
var
functions: HashSet[String]
- Definition Classes
- FormulaParser
-
lazy val
generating_function: Parser[String]
- Definition Classes
- FormulaParser
-
lazy val
generating_function_def: Regex
- Definition Classes
- FormulaParser
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
guard[T](p: ⇒ Parser[T]): Parser[T]
- Definition Classes
- Parsers
-
def
handleWhiteSpace(source: CharSequence, offset: Int): Int
- Attributes
- protected
- Definition Classes
- RegexParsers
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ident: Parser[String]
- Definition Classes
- JavaTokenParsers
-
lazy val
infix_ops: Parser[AnyRef]
- Definition Classes
- FormulaParser
-
def
initSet(): Unit
- Definition Classes
- FormulaParser
-
def
isInDictionary(word: String): Boolean
- Definition Classes
- FormulaParser
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
lazy_multiply: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
implicit
def
literal(s: String): Parser[String]
- Definition Classes
- RegexParsers
-
def
log[T](p: ⇒ Parser[T])(name: String): Parser[T]
- Definition Classes
- Parsers
-
def
logger: SilentLogger
- Definition Classes
- FormulaParser
- def main(args: Array[String]): Unit
-
def
memo[T](p: Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers
-
def
mkList[T]: (~[T, List[T]]) ⇒ List[T]
- Definition Classes
- Parsers
-
lazy val
mod: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
modulo: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
lazy val
month: String
- Definition Classes
- FormulaParser
-
lazy val
multdiv: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
lazy val
multiply: PackratParser[~[(Expression, Expression) ⇒ Expression, Expression]]
- Definition Classes
- FormulaParser
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
lazy val
no_bracket_function: Parser[String]
- Definition Classes
- FormulaParser
-
def
not[T](p: ⇒ Parser[T]): Parser[Unit]
- Definition Classes
- Parsers
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
number: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
obracket: PackratParser[String]
- Definition Classes
- FormulaParser
-
def
opt[T](p: ⇒ Parser[T]): Parser[Option[T]]
- Definition Classes
- Parsers
-
def
parse(line: String, theory: String = ""): Option[Expression]
- Definition Classes
- FormulaParser
-
def
parse[T](p: Parser[T], in: Reader): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
- Definition Classes
- RegexParsers
-
def
parseQuery(line: String, theory: String = ""): Option[String]
- Definition Classes
- FormulaParser
-
implicit
def
parser2packrat[T](p: ⇒ Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers
-
def
phrase[T](p: Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers → Parsers
-
lazy val
plusminus: PackratParser[(Expression, Expression) ⇒ Expression]
- Definition Classes
- FormulaParser
-
def
positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]
- Definition Classes
- RegexParsers → Parsers
-
def
postProcess(expression: Expression): Expression
- Definition Classes
- FormulaParser
-
def
printToFile(f: File)(op: (PrintWriter) ⇒ Unit): Unit
- Definition Classes
- FormulaParser
-
lazy val
reference: Regex
- Definition Classes
- FormulaParser
-
implicit
def
regex(r: Regex): Parser[String]
- Definition Classes
- RegexParsers
-
def
rep[T](p: ⇒ Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
-
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.
-
def
rep1[T](p: ⇒ Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
-
def
rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
- Definition Classes
- Parsers
-
def
repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
-
def
repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
- Definition Classes
- Parsers
-
lazy val
sen_cbracket: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
sen_obracket: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
sentence: PackratParser[Sentence]
- Definition Classes
- FormulaParser
-
lazy val
sentence_cont: PackratParser[List[Expression]]
- Definition Classes
- FormulaParser
-
lazy val
signed_factor: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
signed_term: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
val
skipWhitespace: Boolean
- Definition Classes
- FormulaParser → RegexParsers
-
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.
-
var
succeded: BigInt
- Definition Classes
- FormulaParser
-
def
success[T](v: T): Parser[T]
- Definition Classes
- Parsers
-
lazy val
suffix_functions: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
sum: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
sum_op: PackratParser[((Expression, Expression) ⇒ Expression, Expression)]
- Definition Classes
- FormulaParser
-
lazy val
sum_op_iters: PackratParser[((Expression, Expression) ⇒ Expression, Expression)]
- Definition Classes
- FormulaParser
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
term: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
term_no_fact: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
lazy val
unary_plusminus: PackratParser[String]
- Definition Classes
- FormulaParser
-
lazy val
unsigned_factor: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
lazy val
value: PackratParser[Expression]
- Definition Classes
- FormulaParser
-
def
varToFunc(left: Expression, right: Mul): Mul
- Definition Classes
- FormulaParser
-
lazy val
variable: PackratParser[String]
- Definition Classes
- FormulaParser
-
var
variables: HashSet[String]
- Definition Classes
- FormulaParser
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
whiteSpace: Regex
- Attributes
- protected
- Definition Classes
- RegexParsers
-
def
wholeNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
-
lazy val
word: Regex
- Definition Classes
- FormulaParser
-
lazy val
words: PackratParser[List[Expression]]
- Definition Classes
- FormulaParser
-
lazy val
words_inbracket: PackratParser[List[Expression]]
- Definition Classes
- FormulaParser
-
object
NoSuccess
- Definition Classes
- Parsers