Trait

razie.wiki.parser

WikiParserT

Related Doc: package parser

Permalink

trait WikiParserT extends WikiParserMini with CsvParser

basic wiki parser - this is a trait so you can mix it in, together with other parser extensions, into your own parser

the major patterns recognized are:

- markdown extensions - escape most html tags \[\[link to other wiki page\]\] \[\[\[link to wikipedia page\]\]\] {{markup and properties}}

magic markup and properties

.keyword markup // dot first char {{xxx multiline markup}} ... {{/xxx}} ::beg multiline markup ... ::end

Each parsing rule creates a SState, which are flattened at the end to both update the WikiEntry as well as create the String representation of it - so you can be lazy in the SState.

Linear Supertypes
WikiParserMini, Tokens, CsvParser, ParserBase, ParserCommons, RegexParsers, Parsers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WikiParserT
  2. WikiParserMini
  3. Tokens
  4. CsvParser
  5. ParserBase
  6. ParserCommons
  7. RegexParsers
  8. Parsers
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class CsvHeading(what: String, s: String, delim: String = ";", h: List[String] = Nil) extends Product with Serializable

    Permalink
  2. type Elem = Char

    Permalink
    Definition Classes
    RegexParsers → Parsers
  3. case class Error extends NoSuccess with Product with Serializable

    Permalink
    Definition Classes
    Parsers
  4. case class ErrorToken extends Token with Product with Serializable

    Permalink
    Definition Classes
    Tokens
  5. case class Failure extends NoSuccess with Product with Serializable

    Permalink
    Definition Classes
    Parsers
  6. type Input = Reader[Elem]

    Permalink
    Definition Classes
    Parsers
  7. type LS1 = List[String]

    Permalink
    Definition Classes
    ParserCommons
  8. type LS2 = List[List[String]]

    Permalink
    Definition Classes
    ParserCommons
  9. sealed abstract class NoSuccess extends ParseResult[Nothing]

    Permalink
    Definition Classes
    Parsers
  10. trait OnceParser[+T] extends Parser[T]

    Permalink
    Definition Classes
    Parsers
  11. type P = Parser[String]

    Permalink
    Definition Classes
    ParserCommons
  12. type PS = Parser[BaseAstNode]

    Permalink
    Definition Classes
    ParserBase
  13. type PS1 = Parser[List[String]]

    Permalink
    Definition Classes
    ParserCommons
  14. type PS2 = Parser[List[List[String]]]

    Permalink
    Definition Classes
    ParserCommons
  15. sealed abstract class ParseResult[+T] extends AnyRef

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

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

    Permalink
    Definition Classes
    Parsers
  18. abstract class Token extends AnyRef

    Permalink
    Definition Classes
    Tokens
  19. case class ~[+a, +b] extends Product with Serializable

    Permalink
    Definition Classes
    Parsers

Abstract Value Members

  1. abstract def realm: String

    Permalink

    provide a realm

    provide a realm

    Definition Classes
    ParserBase

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def CRLF1: P

    Permalink
    Definition Classes
    ParserCommons
  5. def CRLF2: P

    Permalink
    Definition Classes
    ParserCommons
  6. def CRLF3: P

    Permalink
    Definition Classes
    ParserCommons
  7. def NADA: P

    Permalink
    Definition Classes
    ParserCommons
  8. object NoSuccess

    Permalink
    Definition Classes
    Parsers
  9. def OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

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

    Permalink
    Definition Classes
    Parsers
  11. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

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

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

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

    Permalink
    Definition Classes
    Parsers
  15. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

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

    Permalink
    Definition Classes
    Parsers
  17. def apply(input: String): BaseAstNode

    Permalink
    Definition Classes
    WikiParserMiniParserBase
  18. def arg: Parser[(String, String)]

    Permalink
    Attributes
    protected
    Definition Classes
    ParserCommons
  19. def arg0: Parser[(String, String)]

    Permalink
    Attributes
    protected
    Definition Classes
    ParserCommons
  20. def arg2: Parser[(String, String)]

    Permalink
    Attributes
    protected
    Definition Classes
    ParserCommons
  21. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  22. def cell(implicit xdelim: String): P

    Permalink
    Definition Classes
    CsvParser
  23. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

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

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

    Permalink
    Definition Classes
    Parsers
  26. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Parsers
  28. def csv(implicit xdelim: String): Parser[List[List[String]]]

    Permalink
    Definition Classes
    CsvParser
  29. def csvCRLF2: PS2

    Permalink
    Definition Classes
    CsvParser
  30. def csvHeadings: Parser[CsvHeading]

    Permalink
  31. def csvLine(implicit xdelim: String): PS1

    Permalink
    Definition Classes
    CsvParser
  32. def csvLines(implicit xdelim: String): PS2

    Permalink
    Definition Classes
    CsvParser
  33. def csvNADA: PS2

    Permalink
    Definition Classes
    CsvParser
  34. def csvOptline(implicit xdelim: String): PS1

    Permalink
    Definition Classes
    CsvParser
  35. def date1: Parser[String]

    Permalink
  36. def date2: Parser[String]

    Permalink
  37. def dates: Parser[String]

    Permalink
  38. def dotProp: PS

    Permalink
    Definition Classes
    WikiParserMini
  39. def dotPropName: PS

    Permalink
  40. def dotPropTags: PS

    Permalink
  41. def dotProps: PS

    Permalink
    Attributes
    protected
    Definition Classes
    WikiParserTWikiParserMini
  42. def elem(e: Elem): Parser[Elem]

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

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

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

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

    Permalink
    Definition Classes
    Parsers
  47. def errorToken(msg: String): Token

    Permalink
    Definition Classes
    Tokens
  48. def escaped: PS

    Permalink
    Definition Classes
    ParserBase
  49. def escaped1: PS

    Permalink
    Definition Classes
    ParserBase
  50. def escaped2: PS

    Permalink
    Definition Classes
    ParserBase
  51. def failure(msg: String): Parser[Nothing]

    Permalink
    Definition Classes
    Parsers
  52. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  53. def getCaption(iargs: List[(String, String)], align: String = "center"): String

    Permalink
    Definition Classes
    WikiParserMini
  54. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  58. def heading: P

    Permalink
  59. def iframe: PS

    Permalink
    Definition Classes
    WikiParserMini
  60. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  61. def lastLine: PS

    Permalink
    Definition Classes
    ParserBase
  62. def lazyt(f: (StrAstNode, FoldingContext[WikiEntry, WikiUser]) ⇒ StrAstNode): LazyAstNode[WikiEntry, WikiUser]

    Permalink
  63. def li1: PS

    Permalink
    Definition Classes
    WikiParserMini
  64. def li2: PS

    Permalink
    Definition Classes
    WikiParserMini
  65. def li3: PS

    Permalink
    Definition Classes
    WikiParserMini
  66. def line: PS

    Permalink

    a line of wiki (to CR/LF)

    a line of wiki (to CR/LF)

    Definition Classes
    WikiParserMiniParserBase
  67. def lines: PS

    Permalink

    a sequence of lines

    a sequence of lines

    Definition Classes
    WikiParserMiniParserBase
  68. def link1: PS

    Permalink
    Definition Classes
    WikiParserMini
  69. def link2: PS

    Permalink
    Definition Classes
    WikiParserMini
  70. def lists: Parser[BaseAstNode]

    Permalink

    quick list element

    quick list element

    Definition Classes
    WikiParserMini
  71. implicit def literal(s: String): Parser[String]

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

    Permalink
    Definition Classes
    Parsers
  73. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

    Permalink
    Definition Classes
    Parsers
  74. val moreBlocks: ListBuffer[Parser[BaseAstNode]]

    Permalink
    Definition Classes
    ParserBase
  75. val moreDotProps: ListBuffer[Parser[BaseAstNode]]

    Permalink
    Definition Classes
    ParserBase
  76. val moreWikiProps: ListBuffer[Parser[BaseAstNode]]

    Permalink
    Definition Classes
    ParserBase
  77. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  78. def noptargs: Parser[List[(String, String)]]

    Permalink
    Attributes
    protected
    Definition Classes
    ParserCommons
  79. def not[T](p: ⇒ Parser[T]): Parser[Unit]

    Permalink
    Definition Classes
    Parsers
  80. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  81. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  82. def oneStatic: P

    Permalink
    Definition Classes
    ParserCommons
  83. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

    Permalink
    Definition Classes
    Parsers
  84. def optargs: Parser[List[(String, String)]]

    Permalink
    Attributes
    protected
    Definition Classes
    ParserCommons
  85. def optline: PS

    Permalink

    an optional line

    an optional line

    Definition Classes
    WikiParserMiniParserBase
  86. def ows: Parser[Option[String]]

    Permalink
    Definition Classes
    ParserCommons
  87. def parse[T](p: Parser[T], in: Reader): ParseResult[T]

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

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

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

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

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

    Permalink
    Definition Classes
    RegexParsers
  93. def parseLine(input: String): BaseAstNode

    Permalink

    use this to parse wiki markdown on the spot - it is meant for short strings within like a cell or something

    use this to parse wiki markdown on the spot - it is meant for short strings within like a cell or something

    Definition Classes
    WikiParserMini
  94. def parseW2(input: String): BaseAstNode

    Permalink

    use this to expand xxx on the spot

    use this to expand xxx on the spot

    Definition Classes
    WikiParserMini
  95. def phrase[T](p: Parser[T]): Parser[T]

    Permalink
    Definition Classes
    RegexParsers → Parsers
  96. def plainLine(implicit end: String): P

    Permalink
    Definition Classes
    CsvParser
  97. def plainLines(implicit end: String): P

    Permalink
    Definition Classes
    CsvParser
  98. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]

    Permalink
    Definition Classes
    RegexParsers → Parsers
  99. implicit def regex(r: Regex): Parser[String]

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

    Permalink
    Definition Classes
    Parsers
  101. def rep1[T](first: ⇒ Parser[T], p0: ⇒ Parser[T]): Parser[List[T]]

    Permalink
    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]]

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

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

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

    Permalink
    Definition Classes
    Parsers
  106. def skipWhitespace: Boolean

    Permalink
    Definition Classes
    ParserCommons → RegexParsers
  107. def sline(tag: String): PS

    Permalink
    Definition Classes
    ParserBase
  108. def sline: PS

    Permalink
    Definition Classes
    ParserBase
  109. def slines: Parser[StrAstNode]

    Permalink
    Definition Classes
    ParserBase
  110. def slinesUntil(tag: String): Parser[StrAstNode]

    Permalink
    Definition Classes
    ParserBase
  111. def soptline(tag: String): PS

    Permalink
    Definition Classes
    ParserBase
  112. def soptline: PS

    Permalink
    Definition Classes
    ParserBase
  113. def sstatic(tag: String): PS

    Permalink
    Definition Classes
    ParserBase
  114. def sstatic: PS

    Permalink
    Definition Classes
    ParserBase
  115. def static: P

    Permalink
    Definition Classes
    ParserCommons
  116. def success[T](v: T): Parser[T]

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

    Permalink
    Definition Classes
    AnyRef
  118. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  119. final def wait(): Unit

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    RegexParsers
  123. def wiki: PS

    Permalink
    Definition Classes
    WikiParserMini
  124. def wiki2: PS

    Permalink
    Definition Classes
    WikiParserMini
  125. def wiki3: PS

    Permalink
    Definition Classes
    WikiParserMini
  126. def wikiProp: PS

    Permalink
    Definition Classes
    WikiParserMini
  127. def wikiPropAlert: PS

    Permalink

    {{alert.color}}...{{/alert}}

  128. def wikiPropCode: PS

    Permalink
  129. def wikiPropCsv: PS

    Permalink
  130. def wikiPropCsv2: PS

    Permalink
  131. def wikiPropCsvStart: Parser[CsvHeading]

    Permalink
  132. def wikiPropExprS: PS

    Permalink

    simple value expressions, not a language - these are expanded in some cases

    simple value expressions, not a language - these are expanded in some cases

    like {{$$REALM}} or {{$name}}

  133. def wikiPropFeedRss: PS

    Permalink
  134. def wikiPropHtml: PS

    Permalink

    {{html}}...{{/html}}

  135. def wikiPropISection: PS

    Permalink
  136. def wikiPropIf: PS

    Permalink
  137. def wikiPropImg: PS

    Permalink
  138. def wikiPropJs: PS

    Permalink

    js expressions, evaluated in the context of the api.wix

  139. def wikiPropMagicName: PS

    Permalink
  140. def wikiPropSection: PS

    Permalink

    {{section:name}}...{{/section}}

  141. def wikiPropTable: PS

    Permalink
  142. def wikiPropTableStart: Parser[CsvHeading]

    Permalink

    delim and optional column headings

  143. def wikiPropTag: PS

    Permalink
  144. def wikiPropVisible: PS

    Permalink
  145. def wikiProps: PS

    Permalink
    Attributes
    protected
    Definition Classes
    WikiParserTWikiParserMini
  146. def wikiPropsRep: PS

    Permalink
    Attributes
    protected
    Definition Classes
    WikiParserTWikiParserMini
  147. final val wikip2a: String("([^:|\\]]*::)?([^:|\\]]*:)?([^/:|\\]]*[/:])?([^|\\]]+)([ ]*[|][ ]*)?([^]]*)?")

    Permalink
    Definition Classes
    WikiParserMini
  148. def withBlocks(p: Parser[BaseAstNode]): ParserBase

    Permalink
    Definition Classes
    ParserBase
  149. def withDotProp(p: Parser[BaseAstNode]): ParserBase

    Permalink
    Definition Classes
    ParserBase
  150. def withWikiProp(p: Parser[BaseAstNode]): ParserBase

    Permalink
    Definition Classes
    ParserBase
  151. def wpVideo(what: String, url: String, args: List[(String, String)]): StrAstNode

    Permalink
    Attributes
    protected
    Definition Classes
    WikiParserMini
  152. def ws: Regex

    Permalink
    Definition Classes
    ParserCommons
  153. def xCRLF1: PS

    Permalink
    Definition Classes
    ParserBase
  154. def xCRLF2: PS

    Permalink
    Definition Classes
    ParserBase
  155. def xCRLF3: PS

    Permalink
    Definition Classes
    ParserBase
  156. def xNADA: PS

    Permalink
    Definition Classes
    ParserBase
  157. def xstatic: PS

    Permalink
    Definition Classes
    ParserBase

Inherited from WikiParserMini

Inherited from Tokens

Inherited from CsvParser

Inherited from ParserBase

Inherited from ParserCommons

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped