class TermParser extends JavaTokenParsers
- Alphabetic
- By Inheritance
- TermParser
- JavaTokenParsers
- RegexParsers
- Parsers
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TermParser()
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
- 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
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from TermParser toany2stringadd[TermParser] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (TermParser, B)
- Implicit
- This member is added by an implicit conversion from TermParser toArrowAssoc[TermParser] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- 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 f: (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 f: (ES) => Iterable[Elem]): Parser[List[Elem]]
- Definition Classes
- Parsers
- def appln: Parser[Term]
- def arrow: Parser[Any]
- def arrowTyp: Parser[Typ[Term]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def colon: Parser[String]
- def commit[T](p: => Parser[T]): Parser[T]
- Definition Classes
- Parsers
- def decimalNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
- def elem(e: Elem): Parser[Elem]
- Definition Classes
- Parsers
- def elem(kind: String, p: (Elem) => Boolean): Parser[Elem]
- Definition Classes
- Parsers
- def ensuring(cond: (TermParser) => Boolean, msg: => Any): TermParser
- Implicit
- This member is added by an implicit conversion from TermParser toEnsuring[TermParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (TermParser) => Boolean): TermParser
- Implicit
- This member is added by an implicit conversion from TermParser toEnsuring[TermParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): TermParser
- Implicit
- This member is added by an implicit conversion from TermParser toEnsuring[TermParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): TermParser
- Implicit
- This member is added by an implicit conversion from TermParser toEnsuring[TermParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def err(msg: String): Parser[Nothing]
- Definition Classes
- Parsers
- def failure(msg: String): Parser[Nothing]
- Definition Classes
- Parsers
- def floatingPointNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TermParser toStringFormat[TermParser] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- def ident: Parser[String]
- Definition Classes
- JavaTokenParsers
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lambdaTerm: Parser[Term]
- implicit def literal(s: String): Parser[String]
- Definition Classes
- RegexParsers
- def log[T](p: => Parser[T])(name: String): Parser[T]
- Definition Classes
- Parsers
- def makeSymbol(s: String): AnySym
- def mapsto: Parser[Any]
- def mkList[T]: (~[T, List[T]]) => List[T]
- Definition Classes
- Parsers
- def name: Parser[AnySym]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def not[T](p: => Parser[T]): Parser[Unit]
- Definition Classes
- Parsers
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def opt[T](p: => Parser[T]): Parser[Option[T]]
- Definition Classes
- Parsers
- def pair: Parser[Term]
- 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 phrase[T](p: Parser[T]): Parser[T]
- Definition Classes
- RegexParsers → Parsers
- def piTyp: Parser[Typ[Term]]
- def positioned[T <: Positional](p: => Parser[T]): Parser[T]
- Definition Classes
- RegexParsers → Parsers
- def prod: Parser[Any]
- 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
- def sigma: Parser[Any]
- def sigmaTyp: Parser[Typ[Term]]
- def skipWhitespace: Boolean
- Definition Classes
- 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.
- def success[T](v: T): Parser[T]
- Definition Classes
- Parsers
- def symbTerm: Parser[Term]
- def symbTyp: Parser[Typ[Term]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def term: Parser[Term]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typ: Parser[Typ[Term]]
- def uni: Parser[Typ[Typ[Term]]]
- def univ: Parser[Any]
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val whiteSpace: Regex
- Attributes
- protected
- Definition Classes
- RegexParsers
- def wholeNumber: Parser[String]
- Definition Classes
- JavaTokenParsers
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (TermParser, B)
- Implicit
- This member is added by an implicit conversion from TermParser toArrowAssoc[TermParser] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.