This file lays out the class structure for a JSGF Grammar.
Disjunction class stores disjuncts in a list
Grammar class which contains a list for public rules and a list for all rules.
adds a rule to the list of public rules
adds a rule to the list of rules
returns rule definition
Parameters: | nt – Non-Terminal (variable) whose definition to get |
---|
NonTerminal class simply stores the label of the nonterminal
Optional class stores either a JSGFExpression, list, or string as its optional element
Rule class, represents a JSGF rule, with a nonterminal name representing the left hand side, and a list of possible expansions representing the right hand side.