DirectiveParserBuilder

API to implement by the actual directive parser.

This allows directive parts to specify the expected elements within the parsed directive. In contrast to Laika's directive syntax which allows to have a single directive parser for any kind of directive implementation, the one for ReStructuredText has a separate parser for each directive depending on its configuration.

class Object
trait Matchable
class Any

Value members

Abstract methods

def argument(withWS: Boolean): (Key, DirectiveParserBuilder)
def field(name: String): (Key, DirectiveParserBuilder)
def optArgument(withWS: Boolean): (Key, DirectiveParserBuilder)
def optField(name: String): (Key, DirectiveParserBuilder)
def parser: Parser[Vector[Part]]