type

FandocParser

src @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

main
parse

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

parseStr

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

Slot Details

errs

src FandocErr[] errs := FandocErr[,]

List of errors detected

main

src static Void main(Str[] args := Env.cur().args())

parse

src Doc parse(Str filename, InStream in, Bool close := true)

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

src Bool parseHeader := true

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

parseStr

src Doc parseStr(Str plaintext)

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

silent

src Bool silent := false

If not silent, then errors are dumped to stdout