Browse
 
Tools
Rss Categories

LVGrammar_CreateParseTree

Reference Number: AA-00836 Views: 1258 0 Rating/ Voters

Return the parse tree handle with the specified index.

Function

  • H_PARSE_TREE LVGrammar_CreateParseTree(HGRAMMAR Grammar, int index)

Parameter

Grammar

A handle to the grammar.

index

The index of the parse tree handle to be returned. It should be in the following range:
[0, (LVGrammar_GetNumberOfParses() - 1)].

Return Values

NULL

The index is not valid.

Non-NULL

The parse tree handle.

Remarks

This function should be used after a call to LVGrammar_ParseSentence. If the returned handle is not null, you need to call LVParseTree_Release  to destroy the parse tree object pointed by the handle.  

See Also