Syntree context.
Class Context
Has support to create the syntree as the parsing proceeds.
Properties | |
currentNode | |
listDepth | |
nodeStack | |
row | |
standouts | |
topNode | |
Methods | |
add | Adds data to the current node. |
popNode | Remove last node in the stack. |
pushNode | Adds a node in the context stack. |
setListDepth | Creates a list and sets the list depth. |
Adds data to the current node.
add( Data, data )
Data | the data to be added. |
The data may be either a string or a full node-headed structure.
Remove last node in the stack.
popNode()
Return | The topmost stack node. |
Adds a node in the context stack.
pushNode( lnode )
lnode | Node to be added. |
Creates a list and sets the list depth.
setListDepth( lvl, ltype )
lvl | Current level of the list. |
ltype | Type of list. |
Can make a list deeper or flatter. Setting level to 0 is the same as closing the list. The type of the list may be "ol" or "ul".