Class

laika.bundle

ParserBundle

Related Doc: package bundle

Permalink

case class ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, markupParserHooks: Option[ParserHooks] = None, configHeaderParsers: Seq[(Path) ⇒ Parser[Either[InvalidElement, Config]]] = Nil, 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

markupParserHooks

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

configHeaderParsers

parser for configuration headers in text markup and template documents

templateParser

parser for template documents

styleSheetParser

parser for CSS documents

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

Instance Constructors

  1. new ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, markupParserHooks: Option[ParserHooks] = None, configHeaderParsers: Seq[(Path) ⇒ Parser[Either[InvalidElement, Config]]] = Nil, templateParser: Option[Parser[TemplateRoot]] = None, styleSheetParser: Option[Parser[Set[StyleDeclaration]]] = None)

    Permalink

    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

    markupParserHooks

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

    configHeaderParsers

    parser for configuration headers in text markup and template documents

    templateParser

    parser for template documents

    styleSheetParser

    parser for CSS documents

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val blockParsers: Seq[BlockParserBuilder]

    Permalink

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

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val configHeaderParsers: Seq[(Path) ⇒ Parser[Either[InvalidElement, Config]]]

    Permalink

    parser for configuration headers in text markup and template documents

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  12. def markupExtensions: MarkupExtensions

    Permalink

    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]

    Permalink

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

  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. val spanParsers: Seq[SpanParserBuilder]

    Permalink

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

  18. val styleSheetParser: Option[Parser[Set[StyleDeclaration]]]

    Permalink

    parser for CSS documents

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. val templateParser: Option[Parser[TemplateRoot]]

    Permalink

    parser for template documents

  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withBase(base: ParserBundle): ParserBundle

    Permalink

    Merges this instance with the specified base.

    Merges this instance with the specified base. Collections of parsers will be merged. Opional 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 Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped