ParserBuilder

laika.api.bundle.ParserBuilder
sealed trait ParserBuilder[T <: ParserDefinition[_]]

Base trait for SpanParserBuilder and BlockParserBuilder APIs.

Attributes

Source
ParserBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def createParser(recursiveParsers: RecursiveParsers): T

Builds a block parser definition lazily by passing the recursive parsers of the host language.

Builds a block parser definition lazily by passing the recursive parsers of the host language.

This indirection is needed when supplying parser implementations as many parsers recursively parse child elements. A list parser for example needs to be able to detect any other block or span element within a list item. But since it has no way of knowing which extensions a user might have added to the host language, those parsers are supplied from the outside by the parser engine.

Attributes

Source
ParserBuilder.scala