Packages

o

info.kwarc.mmt.imps

ParserWithSourcePosition

object ParserWithSourcePosition extends Parsers with UnparsedParsers

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

Type Members

  1. type Elem = Char
    Definition Classes
    UnparsedParsers → 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[Char]
    Definition Classes
    UnparsedParsers → 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 (scala.util.parsing.combinator.Parsers.Input) ⇒ ParseResult[T]
    Definition Classes
    Parsers
  11. class ParserWithSourcePosition[T <: DefForm] extends Parser[T]

    This little ray of sunshine class allows the usage of Parser Combinators while also delivering SourceRefs (or at least SourcePositions), which previously required state.

    This little ray of sunshine class allows the usage of Parser Combinators while also delivering SourceRefs (or at least SourcePositions), which previously required state.

    T

    The type of the def-form, needs to implement trait DefForm.

  12. case class Success[+T] extends ParseResult[T] with Product with Serializable
    Definition Classes
    Parsers
  13. 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: (ParserWithSourcePosition.Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]
    Definition Classes
    Parsers
  5. def Parser[T](f: (ParserWithSourcePosition.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 anyOf[A](ks: List[Parser[A]]): Parser[A]
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]
    Definition Classes
    Parsers
  15. def chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]
    Definition Classes
    Parsers
  16. def chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]
    Definition Classes
    Parsers
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. def commit[T](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    Parsers
  19. def composeParser[T <: DefForm](name: String, pos: List[Parser[DefForm]], mod: List[Parser[DefForm]], key: List[(Parser[DefForm], Required)], x: Comp[T]): Parser[T]

    Parser Combinator that composes a parser for a large def-form from parsers for its parts.

    Parser Combinator that composes a parser for a large def-form from parsers for its parts.

    Note: This is not a fullparser, because while we _do_ want SourceRefs, we also want for potentially following comments to stand on their own.

    T

    The type of the def-form, needs to implement trait DefForm.

    name

    The name of the Def-Form, e.g. "def-atomic-sort".

    pos

    Parsers for all positional arguments (all required and in this order).

    mod

    Parsers for all modifier arguments (all optional, any order). These are essentially treated exactly like keyword arguments.

    key

    Parsers for all keyword arguments (might be optional, can come in any order) and value indicating if they're optional or required.

    x

    Companion object containing the applicable build() method.

    returns

    A parser that parses the entire def-form.

  20. def elem(e: Elem): Parser[Elem]
    Definition Classes
    Parsers
  21. def elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]
    Definition Classes
    Parsers
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def err(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  25. def failure(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def fullParser[T <: DefForm](p: Parser[T]): Parser[T]
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def guard[T](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    Parsers
  30. def handleWhiteSpace(source: CharSequence, offset: Int): Int
    Attributes
    protected
    Definition Classes
    RegexParsers
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def keyworded(ks: List[(Parser[DefForm], Required)]): Parser[List[Option[DefForm]]]
  34. implicit def literal(s: String): Parser[String]
    Definition Classes
    RegexParsers
  35. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]
    Definition Classes
    Parsers
  36. def memo[T](p: Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers
  37. def mkList[T]: (~[T, List[T]]) ⇒ List[T]
    Definition Classes
    Parsers
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. def not[T](p: ⇒ Parser[T]): Parser[Unit]
    Definition Classes
    Parsers
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]
    Definition Classes
    Parsers
  43. def pLineComment: ParserWithSourcePosition[LineComment]
  44. def parse[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  45. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  46. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  47. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  48. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  49. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  50. lazy val parseLineComment: PackratParser[LineComment]
  51. lazy val parseText: Parser[String]
  52. implicit def parser2packrat[T](p: ⇒ Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers
  53. def phrase[T](p: Parser[T]): PackratParser[T]
    Definition Classes
    PackratParsers → Parsers
  54. def positional(parsers: List[Parser[DefForm]]): Parser[List[DefForm]]
  55. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]
    Definition Classes
    RegexParsers → Parsers
  56. implicit def regex(r: Regex): Parser[String]
    Definition Classes
    RegexParsers
  57. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  58. 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.

  59. def rep1[T](p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  60. def rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  61. def repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  62. def repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  63. def singleOrList[A](p: Parser[A]): Parser[List[A]]
  64. def skipWhitespace: Boolean
    Definition Classes
    RegexParsers
  65. def success[T](v: T): Parser[T]
    Definition Classes
    Parsers
  66. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  67. def toString(): String
    Definition Classes
    AnyRef → Any
  68. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  71. val whiteSpace: Regex
    Attributes
    protected
    Definition Classes
    RegexParsers
  72. def withComment[T <: DefForm](dfp: ParserWithSourcePosition[T]): Parser[T]
  73. object NoSuccess
    Definition Classes
    Parsers

Inherited from UnparsedParsers

Inherited from PackratParsers

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped