class syntax::SyntaxDoc

sys::Obj
  syntax::SyntaxDoc

Source

SyntaxDoc models a full document as a series of SyntaxLines.

eachLine

Void eachLine(|SyntaxLine| f)

Source

Iterate each line of the document.

parse

static SyntaxDoc parse(SyntaxRules rules, InStream in)

Source

Parse an input stream into a document using given rules. The input stream is guaranteed to be closed.

rules

SyntaxRules rules { private set }

Source

Rules used to parse this document.