Browse
 
Tools
Rss Categories

LVGrammar_SetRoot (Deprecated)

Reference Number: AA-00856 Views: 1465 0 Rating/ Voters

Identifies one of the grammar rules as the root rule.  The root rule is where the engine starts its search.

Function

  • int LVGrammar_SetRoot(HGRAMMAR Grammar, const char* rule_name)

Parameters

Grammar

A handle to the grammar.

rule_name

The name of the rule.

Example

The C function call "LVGrammar_SetRoot(Grammar, "foo");" is the same as writing "root  $foo; "into a grammar: