User blog comment:Hyp cos/R function II/@comment-2033667-20150406074146

Okay I tried to piece together a recursive definition of the syntax from the above:


 * A valid R-expression is either a numeric term or a bracketed term. A numeric term is simply a nonnnegative integer. A bracketed term consists of a left brace "{", followed by one or more R-expressions separated by commas, followed by a superscript "+a" where a is a nonnegative integer, and finally a right brace "}".


 * The R function is denoted nRS where n is a positive integer and S is a valid R-expression.

Is this complete and accurate?