|
|
|
INTEGER AddNode (integer, integer, integer, character)
|
Creates a node as a child of a parent at a given order
Notes : Pure CREATE + assign - child order is data (ParentId,
ChildOrder), not a sibling-pointer chain, so no FINDs.
@param piParentId The parent node id (0 for the root)
@param piOrder The child order under the parent
@param piType The node type
@param pcText The node text
@return The new node id
*/
|
|
|
|
Advance ()
|
Advances the cursor to the next token
Notes :
*/
|
|
|
|
LOGICAL AtEnd ()
|
Returns whether the token cursor is exhausted
Notes :
@return Logical value indicating end of tokens
*/
|
|
|
|
INTEGER BuildTree ()
|
Parses the loaded tokens into the ttNode tree
Notes :
@return The number of nodes created
*/
|
|
|
|
CHARACTER CurrentText ()
|
Returns the text of the current token
Notes :
@return The current token text (or "" at end)
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.ProToken GetNode (integer)
|
Materializes a lightweight ProToken for a node on demand
Notes : Demonstrates lazy object materialization from the record tree.
@param piNodeId The node id
@return The ProToken, or the unknown value if the node does not exist
*/
|
|
|
|
INTEGER LoadTokens (longchar)
|
Lexes the source into the token temp-table (parser input)
Notes : Not part of the tree-build measurement; whitespace and
comments are dropped, as a real parser hides them.
@param plcSource The source code
@return The number of meaningful tokens
*/
|
|
|
|
INTEGER NavigateCount ()
|
Walks the whole tree via the (ParentId, ChildOrder) index and
counts nodes
Notes : Measures navigation throughput of the record representation.
@return The number of nodes visited
*/
|
|
|
|
ParseStatement (integer, integer)
|
Parses one statement (or DO ... END block) under a parent
Notes :
@param piParentId The parent node id
@param piOrder The order of this statement under the parent
*/
|
|
|
|
ResetCursor ()
|
Positions the cursor on the first token
Notes :
*/
|
|
|
|
INTEGER VisitNode (integer)
|
Recursively visits a node and its descendants
Notes :
@param piNodeId The node id to visit
@return The number of nodes visited in this subtree
*/
|