module watt.markdown.xml

Xml exporter of ast, used for debugging.

Code Map

//! Xml exporter of ast, used for debugging.
module watt.markdown.xml;


//! Pure AST XML printer for Markdown.
class Xml : Visitor
{
public:
	indent: u32;


public:
	this() { }
	fn enter(str: string, sink: scope (Sink)) { }
	fn leave(str: string, sink: scope (Sink)) { }
	fn visit(str: string, sink: scope (Sink)) { }
	fn enter(n: Document, sink: scope (Sink)) { }
	fn leave(n: Document, sink: scope (Sink)) { }
	fn enter(n: BlockQuote, sink: scope (Sink)) { }
	fn leave(n: BlockQuote, sink: scope (Sink)) { }
	fn enter(n: Paragraph, sink: scope (Sink)) { }
	fn leave(n: Paragraph, sink: scope (Sink)) { }
	fn enter(n: Heading, sink: scope (Sink)) { }
	fn leave(n: Heading, sink: scope (Sink)) { }
	fn enter(n: List, sink: scope (Sink)) { }
	fn leave(n: List, sink: scope (Sink)) { }
	fn enter(n: Item, sink: scope (Sink)) { }
	fn leave(n: Item, sink: scope (Sink)) { }
	fn enter(n: Link, sink: scope (Sink)) { }
	fn leave(n: Link, sink: scope (Sink)) { }
	fn enter(n: Image, sink: scope (Sink)) { }
	fn leave(n: Image, sink: scope (Sink)) { }
	fn enter(n: Emph, sink: scope (Sink)) { }
	fn leave(n: Emph, sink: scope (Sink)) { }
	fn enter(n: Strong, sink: scope (Sink)) { }
	fn leave(n: Strong, sink: scope (Sink)) { }
	fn visit(n: HtmlBlock, sink: scope (Sink)) { }
	fn visit(n: CodeBlock, sink: scope (Sink)) { }
	fn visit(n: Text, sink: scope (Sink)) { }
	fn visit(n: Code, sink: scope (Sink)) { }
	fn visit(n: HtmlInline, sink: scope (Sink)) { }
	fn visit(n: Softbreak, sink: scope (Sink)) { }
	fn visit(n: Linebreak, sink: scope (Sink)) { }
	fn visit(n: ThematicBreak, sink: scope (Sink)) { }
}

//! Print the document as a xml ast, return it as a string.
fn printXml(doc: Document) string { }
//! Print the document as a XML AST to the given sink.
fn printXml(doc: Document, sink: scope (Sink)) { }
fn printXml(doc: Document) string

Print the document as a xml ast, return it as a string.

fn printXml(doc: Document, sink: scope (Sink))

Print the document as a XML AST to the given sink.

class Xml : Visitor

Pure AST XML printer for Markdown.