Reference

Class

RiGrammar

Name

reset

Description Clears all rules in the current grammar
Syntax
reset();
Returns
RiGrammarthis RiGrammar
Example
rg = new RiGrammar(); 
rg.addRule("<pet>", "dog | hawk | crow", 1);
rg.reset();
Platform Java / Javascript