(write-farkup) ( farkup -- xml )
Farkup

Prev:parse-farkup ( string -- farkup )
Next:Farkup syntax tree nodes


Vocabulary
farkup

Inputs
farkupa Farkup syntax tree node


Outputs
xmlan XML chunk


Word description
Converts a Farkup syntax tree node to XML.

Definition


Methods




























M: line-break (write-farkup)
drop
T{ xml-chunk { seq V{ "" T{ tag { name ~name~ } } "" } } } ;



M: line (write-farkup)
drop
T{ xml-chunk { seq V{ "" T{ tag { name ~name~ } } "" } } } ;



























M: table-row (write-farkup)
child>> [
(write-farkup) 1 nenum T{ xml-chunk
{ seq
V{
""
T{ tag
{ name ~name~ }
{ children ~vector~ }
}
""
}
}
} interpolate-xml
] map 1 nenum T{ xml-chunk
{ seq
V{
""
T{ tag { name ~name~ } { children ~vector~ } }
""
}
}
} interpolate-xml ;