17.5.3.1Class Context

Syntree context.

Class Context

Has support to create the syntree as the parsing proceeds.

Properties
currentNode
listDepth
nodeStack
row
standouts
topNode
Methods
addAdds data to the current node.
popNodeRemove last node in the stack.
pushNodeAdds a node in the context stack.
setListDepthCreates a list and sets the list depth.

Properties

currentNode

listDepth

nodeStack

row

standouts

topNode

Methods

add

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.

popNode

Remove last node in the stack.

popNode()
ReturnThe topmost stack node.

pushNode

Adds a node in the context stack.

pushNode( lnode )
lnode Node to be added.

setListDepth

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".

Made with http://www.falconpl.org