final class WikiParser
extends CharReader with MemberLookup

Original wikiparser from NSC

Constructors

WikiParser ( entity: Entity , packages: Map [ String, Package ] , buffer: String , pos: Position , site: Symbol )

Members

[+] val CLOSE_TAG : Regex
[+] val OPEN_TAG : Regex
[+] val buffer : String
[+] private val entity : Entity
[+] protected val listStyles : Map [ String, Seq [ Block ] => Block ]

listStyle ::= '-' spc | '1.' spc | 'I.' spc | 'i.' spc | 'A.' spc | 'a.' spc Characters used to build lists and their constructors

listStyle ::= '-' spc | '1.' spc | 'I.' spc | 'i.' spc | 'A.' spc | 'a.' spc Characters used to build lists and their constructors

[+] private val packages : Map [ String, Package ]
[+] private val pos : Position
[+] private val site : Symbol
[+] var summaryParsed : Boolean
[+] def block ( ) : Block

{{{ block ::= code | title | hrule | listBlock | para }}}

{{{ block ::= code | title | hrule | listBlock | para }}}

[+] def blockEnded ( blockType: String ) : Unit

{{{ eol ::= { whitespace } '\n' }}}

{{{ eol ::= { whitespace } '\n' }}}

[+] def bold ( ) : Inline
[+] def checkList : Boolean

Checks if the current line is formed with more than one space and one the listStyles

Checks if the current line is formed with more than one space and one the listStyles

[+] def checkParaEnded ( ) : Boolean
[+] def checkSentenceEnded ( ) : Boolean
[+] def code ( ) : Block
[+] def document ( ) : Body
[+] def getInline ( isInlineEnd: => Boolean ) : Inline
[+] def hrule ( ) : Block

{{{ hrule ::= "----" { '-' } '\n' }}}

{{{ hrule ::= "----" { '-' } '\n' }}}

[+] def htmlTag ( ) : HtmlTag
[+] def italic ( ) : Inline
[+] def link ( ) : Inline
[+] def listBlock ( ) : Block

{{{ nListBlock ::= nLine { mListBlock } nLine ::= nSpc listStyle para '\n' }}} Where n and m stand for the number of spaces. When m > n, a new list is nes...

{{{ nListBlock ::= nLine { mListBlock } nLine ::= nSpc listStyle para '\n' }}} Where n and m stand for the number of spaces. When m > n, a new list is nested.

[+] def monospace ( ) : Inline
[+] def normalizeIndentation ( _code: String ) : String

Eliminates the (common) leading spaces in all lines, based on the first line For indented pieces of code, it reduces the indent to the least whitespace...

Eliminates the (common) leading spaces in all lines, based on the first line For indented pieces of code, it reduces the indent to the least whitespace prefix: {{{ indented example another indented line if (condition) then do something; ^ this is the least whitespace prefix }}}

[+] def para ( ) : Block

{{{ para ::= inline '\n' }}}

{{{ para ::= inline '\n' }}}

[+] private def readHTMLFrom ( begin: HtmlTag ) : String
[+] def reportError ( pos: Position , message: String ) : Unit
[+] def subscript ( ) : Inline
[+] def summary ( ) : Inline
[+] def summaryParsed_= ( x$1: Boolean ) : Unit
[+] def superscript ( ) : Inline
[+] def title ( ) : Block

{{{ title ::= ('=' inline '=' | "==" inline "==" | ...) '\n' }}}

{{{ title ::= ('=' inline '=' | "==" inline "==" | ...) '\n' }}}

[+] def underline ( ) : Inline