c

laika.bundle

ParserBundle

case class ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, syntaxHighlighters: Seq[SyntaxHighlighter] = Nil, markupParserHooks: Option[ParserHooks] = None, configProvider: Option[ConfigProvider] = None, templateParser: Option[Parser[TemplateRoot]] = None, styleSheetParser: Option[Parser[Set[StyleDeclaration]]] = None) extends Product with Serializable

Bundles a collection of all types of parsers used in a transformation.

The parsers for text markup and configuration headers are meant to complement base parsers defined by the host language. If they fail for a given input the built-in parsers will still be tried for the same block, span or configuration header respectively.

The parsers for stylesheets and templates on the other hand are meant to overwrite any previously installed parsers.

blockParsers

parsers for block elements in text markup, complementing the parsers of the host language

spanParsers

parsers for span elements in text markup, complementing the parsers of the host language

syntaxHighlighters

parsers for syntax highlighting of code blocks

markupParserHooks

hooks for markup parsers to control aspects beyond the individual span and block parsers

configProvider

parser for configuration headers in text markup and template documents and configuration documents

templateParser

parser for template documents

styleSheetParser

parser for CSS documents

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParserBundle
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, syntaxHighlighters: Seq[SyntaxHighlighter] = Nil, markupParserHooks: Option[ParserHooks] = None, configProvider: Option[ConfigProvider] = None, templateParser: Option[Parser[TemplateRoot]] = None, styleSheetParser: Option[Parser[Set[StyleDeclaration]]] = None)

    blockParsers

    parsers for block elements in text markup, complementing the parsers of the host language

    spanParsers

    parsers for span elements in text markup, complementing the parsers of the host language

    syntaxHighlighters

    parsers for syntax highlighting of code blocks

    markupParserHooks

    hooks for markup parsers to control aspects beyond the individual span and block parsers

    configProvider

    parser for configuration headers in text markup and template documents and configuration documents

    templateParser

    parser for template documents

    styleSheetParser

    parser for CSS documents

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val blockParsers: Seq[BlockParserBuilder]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val configProvider: Option[ConfigProvider]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def markupExtensions: MarkupExtensions

    Just the extensions for the text markup parser defined in this bundle.

    Just the extensions for the text markup parser defined in this bundle. Fallback instances will be added where appropriate for parsers or hooks not defined in this bundle.

  13. val markupParserHooks: Option[ParserHooks]
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val spanParsers: Seq[SpanParserBuilder]
  19. val styleSheetParser: Option[Parser[Set[StyleDeclaration]]]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. val syntaxHighlighters: Seq[SyntaxHighlighter]
  22. val templateParser: Option[Parser[TemplateRoot]]
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. def withBase(base: ParserBundle): ParserBundle

    Merges this instance with the specified base.

    Merges this instance with the specified base. Collections of parsers will be merged. Optional parsers in this instance will overwrite optional parsers in the base (if defined), with the base only serving as a fallback.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped