Browse
 
Tools
Rss Categories

LVGrammar::SetRoot (Deprecated)

Reference Number: AA-00870 Views: 1141 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 SetRoot(const char* rule_name)

Parameters

rule_name

The name of the rule.

Example

The C++ function call "SetRoot("foo");" is the same as writing "root $foo;" in a grammar.