Reference

Class

RiGrammar

Name

setRules

Description Loads a grammar from an object (or Map in Java).
Example
rg = new RiGrammar(); 
rg.setRules(rules);
Parameters
Object or JSON stringa representation of the grammar
Returns
Objectthis RiGrammar object
Syntax
rg.setRules(grammarRules);
Platform Java / JavaScript