(This example is also available as a loadable module in the included
`term.js` file.)
- ::javascript
var grammar = new rrr.Grammar({
// Canonical expression/term/factor grammar.
a start expression other than the default, you can provide a different
initial string.
- ::javascript
grammar.generate(); // Equivalent to grammar.generate('<Expr>')
// => '-9 * 3512 + (-(-51 - -9 / 6) / -6278 + -4 * 30321) / 21940'