Fantom

 

class

fandoc::FandocParser

sys::Obj
  fandoc::FandocParser

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

See docLib::Fandoc for usage.

Slots

errsSource

FandocErr[] errs := FandocErr[,]

List of errors detected

mainSource

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

parseSource

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.

parseHeaderSource

Bool parseHeader := true

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

parseStrSource

Doc parseStr(Str plaintext)

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

silentSource

Bool silent := false

If not silent, then errors are dumped to stdout