FandocParser
@Js
class FandocParser : Obj
FandocParser translate fandoc text into an in-memory representation of the document.
See pod doc for usage.
List of errors detected
If true, then leading lines starting with ** are parsed as header
If not silent, then errors are dumped to stdout
Parse a string into its in-memory document tree structure
Parse the document from the specified in stream into an in-memory tree structure
FandocErr[] : errs
List of errors detected
static Void main(Str[] args)
Doc parse(Str filename, InStream in, Bool close)
Parse the document from the specified in stream into an in-memory tree structure. If close is true, the stream is guaranteed to be closed.
Bool : parseHeader
If true, then leading lines starting with ** are parsed as header
Doc parseStr(Str plaintext)
Parse a string into its in-memory document tree structure.
Bool : silent
If not silent, then errors are dumped to stdout