class

FandocParser

@Js
class FandocParser : Obj

FandocParser translate fandoc text into an in-memory representation of the document.

See pod doc for usage.

fields errs

List of errors detected

parseHeader

If true, then leading lines starting with ** are parsed as header

silent

If not silent, then errors are dumped to stdout

methods parseStr

Parse a string into its in-memory document tree structure

main

parse

Parse the document from the specified in stream into an in-memory tree structure

errs FandocErr[] : errs

List of errors detected

main static Void main(Str[] args)

parse 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.

parseHeader Bool : parseHeader

If true, then leading lines starting with ** are parsed as header

parseStr Doc parseStr(Str plaintext)

Parse a string into its in-memory document tree structure.

silent Bool : silent

If not silent, then errors are dumped to stdout

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST