Grammar Changes

Ross Ihaka ihaka@stat.auckland.ac.nz
Tue, 18 Aug 1998 08:32:43 +1200 (NZST)


I would like to make a couple of small changes to the R grammar.
At present, operators like ~, ==, !=, <, <=, >, >= are declared
to be non-associative.  This means that things like

	a < b <= c

produce a "syntax error" message when typed.

I would like to change the grammar so that these operators are
left-associative.  I want to make this change so that mathematical
annotation in the graphics will work a little better.

Interestingly, these operators are left-associative in S, so this
would be a move toward compatibility.

Does anyone have any strong thoughts on this?

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._