ParserBundle

case class ParserBundle(blockParsers: Seq[BlockParserBuilder], spanParsers: Seq[SpanParserBuilder], syntaxHighlighters: Seq[SyntaxHighlighter], markupParserHooks: Option[ParserHooks], configProvider: Option[ConfigProvider], templateParser: Option[Parser[TemplateRoot]], styleSheetParser: Option[Parser[Set[StyleDeclaration]]])

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.

Value parameters:
blockParsers

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

configProvider

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

markupParserHooks

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

spanParsers

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

styleSheetParser

parser for CSS documents

syntaxHighlighters

parsers for syntax highlighting of code blocks

templateParser

parser for template documents

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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.

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.

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.

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 methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product