- Index
- »
- fan.syntax
- »
- SyntaxDoc
SyntaxDoc
class SyntaxDoc : Obj
SyntaxDoc models a full document as a series of SyntaxLines.
Rules used to parse this document
Iterate each line of the document
Parse an input stream into a document using given rules
Void eachLine(|SyntaxLine| f)
Iterate each line of the document.
static SyntaxDoc parse(SyntaxRules rules, InStream in)
Parse an input stream into a document using given rules. The input stream is guaranteed to be closed.
SyntaxRules : rules
Rules used to parse this document.