Reference

Class

RiGrammar

Name

addRules

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