class fandoc::FandocParser

sys::Obj
  fandoc::FandocParser

@Js

Source

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

See pod doc for usage.

errs

FandocErr[] errs := FandocErr[,]

Source

List of errors detected

main

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

Source

parse

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

Source

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 := true

Source

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

parseStr

Doc parseStr(Str plaintext)

Source

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

silent

Bool silent := false

Source

If not silent, then errors are dumped to stdout