net.liftweb.markdown

BaseParsers

trait BaseParsers extends RegexParsers

Basic parsers for Markdown Source. Provides general, small parsers that are used by other parsers. Also contains parsers for XML elements.

Linear Supertypes
RegexParsers, Parsers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BaseParsers
  2. RegexParsers
  3. Parsers
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
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. sealed abstract class ParseResult[+T] extends AnyRef

    Definition Classes
    Parsers
  8. abstract class Parser[+T] extends (Input) ⇒ ParseResult[T]

    Definition Classes
    Parsers
  9. case class Success[+T] extends ParseResult[T] with Product with Serializable

    Definition Classes
    Parsers
  10. case class ~[+a, +b] extends Product with Serializable

    Definition Classes
    Parsers

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

    Definition Classes
    Parsers
  7. def Parser[T](f: (Input) ⇒ ParseResult[T]): Parser[T]

    Definition Classes
    Parsers
  8. def aChar: Parser[String]

  9. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    Parsers
  10. def accept[ES](es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  11. implicit def accept(e: Elem): Parser[Elem]

    Definition Classes
    Parsers
  12. def acceptIf(p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]

    Definition Classes
    Parsers
  13. def acceptMatch[S, T](f: PartialFunction[S, T])(p: Parser[S]): Parser[T]

    Succeeds if the given parsers succeeds and the given function is defined at the parse result.

    Succeeds if the given parsers succeeds and the given function is defined at the parse result. Returns the result of the method applied to the given parsers result.

  14. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    Parsers
  15. def acceptSeq[ES](es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  16. def any: Parser[String]

    Matches exactly one char, no matter which.

    Matches exactly one char, no matter which. This differs from "elem" as it returns a string consisting of that char.

  17. def apply[T](p: Parser[T], in: String): T

    Runs the given parser on the given input.

    Runs the given parser on the given input. Expects the parser to succeed and consume all input. Throws an IllegalArgumentException if parsing failed.

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  20. def chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  21. def chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]

    Definition Classes
    Parsers
  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def commit[T](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  24. def elem(e: Elem): Parser[Elem]

    Definition Classes
    Parsers
  25. def elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]

    Definition Classes
    Parsers
  26. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  28. def err(msg: String): Parser[Nothing]

    Definition Classes
    Parsers
  29. def escapeFastForXml(c: Char): String

    Either returns the XML escape sequence for the given char or null.

    Either returns the XML escape sequence for the given char or null. This does not return Option[String] on purpose. While Option[String] would be a much cleaner solution, this is actually called so often that it is a noticeable difference if we use Option here.

  30. def escapeForXml(c: Char): String

    Escapes the given char for XML.

    Escapes the given char for XML. Returns Either the necessary XML escape Sequence or the same char in a String.

  31. def failure(msg: String): Parser[Nothing]

    Definition Classes
    Parsers
  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  34. def guard[T](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  35. def handleWhiteSpace(source: CharSequence, offset: Int): Int

    Attributes
    protected
    Definition Classes
    RegexParsers
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. implicit def literal(s: String): Parser[String]

    Definition Classes
    RegexParsers
  39. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]

    Definition Classes
    Parsers
  40. def lookbehind(cs: Set[Char]): Parser[Unit]

    Looks if the preceding char was one of the given chars.

    Looks if the preceding char was one of the given chars. Never consumes any input.

  41. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

    Definition Classes
    Parsers
  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def nl: Parser[String]

    Accepts a unix newline and returns a string containing a single newline.

  44. def not[T](p: ⇒ Parser[T]): Parser[Unit]

    Definition Classes
    Parsers
  45. final def notify(): Unit

    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  47. def oneOf(lookup: Map[Char, String]): Parser[String]

    Matches one of the given char keys in the map.

    Matches one of the given char keys in the map. Returns the string value for the matched char in the given map.

  48. def oneOf(lookup: Set[Char]): Parser[String]

    Matches one of the chars in the given set.

    Matches one of the chars in the given set. Returns a string with the matched char.

  49. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

    Definition Classes
    Parsers
  50. def ows: Parser[String]

    accepts zero or more spaces or tabs returns the matched whitespace

  51. def parse[T](p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  52. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  53. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  54. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  55. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  56. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  57. def phrase[T](p: Parser[T]): Parser[T]

    Definition Classes
    RegexParsers → Parsers
  58. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    RegexParsers → Parsers
  59. def range(begin: Char, end: Char): Parser[Char]

    Matches one char in the given range, returns the matched char.

  60. def ranges(rs: SortedMap[Char, Char]): Parser[Char]

  61. implicit def regex(r: Regex): Parser[String]

    Definition Classes
    RegexParsers
  62. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  63. 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.

  64. def rep1[T](p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  65. def rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  66. def repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  67. def repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  68. def rest: Parser[String]

    Matches everything in the parsed string up to the end.

    Matches everything in the parsed string up to the end. Also matches the empty String. Returns the matched String.

  69. def skipWhitespace: Boolean

    Whitespace is sometimes important in markdown parsing, we handle it manually.

    Whitespace is sometimes important in markdown parsing, we handle it manually. So this returns false.

    Definition Classes
    BaseParsers → RegexParsers
  70. def success[T](v: T): Parser[T]

    Definition Classes
    Parsers
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  72. def toString(): String

    Definition Classes
    AnyRef → Any
  73. def verboseString(c: Char): String

    Returns a verbose description of a char (printed char & hex code).

    Returns a verbose description of a char (printed char & hex code). Used for debugging.

  74. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. val whiteSpace: Regex

    Attributes
    protected
    Definition Classes
    RegexParsers
  78. def ws: Parser[String]

    accepts one or more spaces or tabs returns the matched whitespace

  79. def xmlAttr: Parser[String]

    Parses an XML Attribute with simplified value handling like xmlAttrVal.

  80. def xmlAttrVal: Parser[String]

    Parses a Simplified xml attribute: everything between quotes ("foo") everything between the quotes is run through the escape handling That way you can omit xml escaping when writing inline XML in markdown.

  81. def xmlEndTag: Parser[String]

    Parses closing xml tags.

  82. def xmlName: Parser[String]

    Parses an XML name (tag or attribute name)

  83. def xmlNameChar: Parser[Char]

    Parses an XML name char according to W3C spec except that range #x10000 to #xEFFFF is excluded

  84. val xmlNameCharRanges: SortedMap[Char, Char]

  85. def xmlNameStartChar: Parser[Char]

    Parser for one char that starts an XML name.

    Parser for one char that starts an XML name. According to W3C specs except that range #x10000 to #xEFFFF is excluded (cannot be expressed by char literals)

  86. val xmlNameStartCharRanges: SortedMap[Char, Char]

  87. def xmlStartOrEmptyTag: Parser[String]

    Parses an xml start or empty tag, attribute values are escaped.

Deprecated Value Members

  1. def lastNoSuccess: NoSuccess

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

  2. def lastNoSuccess_=(x: NoSuccess): Unit

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped