Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Wikitext
Sourcemapper
allows to implement AST rewriting using open recursion. A typical mapper would be based on default_mapper
, a deep identity mapper, and will fall back on it for handling the syntax it does not modify.
ParsingError (line, column, lexeme)
doc_from_lexbuf lex
parse lex
and return the resulting Type.document
. Raise ParsingError
in case of failure
See doc_from_lexbuf
See doc_from_lexbuf
See doc_from_lexbuf
output_document out doc
Run through the parsed tree doc
and print its content translated into HTML code using the out
function.
doc_to_string doc
Return the HTML version of doc, as a string.
doc_to_chan chan doc
Print doc
(as HTML) to chan
. See output_document
doc_to_file filename doc
Create (or open and truncate) filename
and write doc
(as HTML) into it. See output_document