A Markdown AST visitor called after parsing from a MdParser
markdown2 :: MdPostProcessor :: document
Document behing processedmarkdown2 :: MdPostProcessor :: document=
Document behing processedmarkdown2 :: MdPostProcessor :: post_process
Post process thedocument
parsed by parser
markdown2 $ MdPostProcessor :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
markdown2 :: MdVisitor :: defaultinit
markdown2 :: MdPostProcessor :: document
Document behing processedmarkdown2 :: MdPostProcessor :: document=
Document behing processedcore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdPostProcessor :: post_process
Post process thedocument
parsed by parser
# Markdown post processor
#
# A Markdown AST visitor called after parsing from a MdParser
abstract class MdPostProcessor
super MdVisitor
# Document behing processed
#
# Availlable only during a call to `post_process`.
var document: nullable MdDocument = null
# Post process the `document` parsed by `parser`
fun post_process(parser: MdParser, document: MdDocument) do
self.document = document
enter_visit(document)
self.document = null
end
# Call `MdNode::post_process`
redef fun visit(node) do node.post_process(self)
end
lib/markdown2/markdown_block_parsing.nit:1365,1--1385,3