From p.dalgaard@biostat.ku.dk  Fri Apr 20 14:36:08 2001
From: p.dalgaard@biostat.ku.dk (p.dalgaard@biostat.ku.dk)
Date: Fri, 20 Apr 2001 15:36:08 +0200 (MET DST)
Subject: [Rd] Re: Precedence of %% (PR#879)
Message-ID: <200104201336.PAA01127@pubhealth.ku.dk>

p.dalgaard@biostat.ku.dk writes:

> gram.y has
> 
> ...
> %left           '*' '/' '%'
> %left           SPECIAL
> %left           ':'
> ...
> 
> and %% is a SPECIAL token, so it does indeed have higher precedence
> than *. This is somewhat unusual compared to other languages, but it
> is compatible with S-PLUS 3.4, so I'd say that it is the documentation
> that is wrong. (And that part was written by me, I'm afraid...)

...although I don't think I'm the perpetrator of that '%' in gram.y,
which was probably what misled me in the 1st place. I don't think
there is a way the tokenizer *can* generate a single '%'.

I've modified R-lang.texi for version 1.2.3

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: Precedence of %% (PR#879)
p.dalgaard@biostat.ku.dk