Reference

Class

RiGrammar

Name

print

Description Prints the grammar rules to the console in human-readable format (useful for debugging)
Syntax
print();
Returns
RiGrammarthis RiGrammar
Example
rg = new RiGrammar(); 
rg.addRule("<start>", "the <action> of the <pet>", 1);
rg.addRule("<pet>", "dog | hawk | crow", 1);
rg.addRule("<action>", "cries | screams | falls", 1);
rg.print();
Platform Java / Javascript