object StandardDirectiveParsers
Defines the custom argument and body parsers for the standard directives.
Most of these delegate to the default block or inline parsers for reStructuredText,
but often do only except one specific block type like Table or QuotedBlock whereas
the default block parser usually accepts any of the blocks.
- Alphabetic
- By Inheritance
- StandardDirectiveParsers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
captionAndLegend(p: RecursiveParsers)(input: SourceFragment): Either[String, (Seq[Span], Seq[Block])]
Parses a caption (a single paragraph) and a legend (one or more blocks), both being optional.
Parses a caption (a single paragraph) and a legend (one or more blocks), both being optional.
- p
the standard block parsers including all registered directives for recursive use
- input
the input to parse
- returns
Rightin case of parser success andLeftin case of failure, to adjust to the Directive API
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parseDirectivePart(parser: RecursiveSpanParser, source: SourceFragment): Either[String, Seq[Span]]
Utility method to be used by custom parsers for directive argument or body.
Utility method to be used by custom parsers for directive argument or body. It translates a
Successinto aRightand aNoSuccessinto aLeft. -
def
parseDirectivePart[T](parser: Parser[T], source: SourceFragment): Either[String, T]
Utility method to be used by custom parsers for directive argument or body.
Utility method to be used by custom parsers for directive argument or body. It translates a
Successinto aRightand aNoSuccessinto aLeft. -
def
standardSpans(p: RecursiveParsers)(input: SourceFragment): Either[String, Seq[Span]]
Parses all standard inline markup supported by
reStructuredText.Parses all standard inline markup supported by
reStructuredText.- p
the standard inline parsers including all registered directives for recursive use
- input
the input to parse
- returns
Rightin case of parser success andLeftin case of failure, to adjust to the Directive API
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
table(p: RecursiveParsers)(input: SourceFragment): Either[String, Block]
Parses one of the two table types supported by
reStructuredText.Parses one of the two table types supported by
reStructuredText.- p
the standard block parsers including all registered directives for recursive use
- input
the input to parse
- returns
Rightin case of parser success andLeftin case of failure, to adjust to the Directive API
-
def
target(p: RecursiveParsers)(input: SourceFragment): Either[String, Span]
Parses a target which might be a simple reference, a phrase reference or an uri.
Parses a target which might be a simple reference, a phrase reference or an uri.
- input
the input to parse
- returns
Rightin case of parser success andLeftin case of failure, to adjust to the Directive API
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unicode(input: SourceFragment): Either[String, String]
Parses unicode values in various notations intertwined with normal text.
Parses unicode values in various notations intertwined with normal text.
- input
the input to parse
- returns
Rightin case of parser success andLeftin case of failure, to adjust to the Directive API
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()