Grammar:
ropeRepresentation ::= leadingTerm | leadingTerm moreTerms
leadingTerm ::= term | sign term
moreTerms ::= sign term | sign term moreTerms
sign ::= + | -
term ::= coefficient | poweredVariables | coefficient poweredVariables
coefficient ::= string representation of REAL
poweredVariables ::= poweredVariable | poweredVariable poweredVariables
poweredVariable ::= variable | variable ^ exponent
variable ::= a..z | A..Z
exponent ::= string representation of NAT
Note that whitespace is ignored.