[Rd] ** operator

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Fri May 16 10:05:05 CEST 2008


Peter Dalgaard:

> Not really, just transcribed during the lexical analysis phase:
> 
> case '*':
> if (nextchar('*'))
> c='^';
> yytext[0] = c;
> yytext[1] = '\0';
> yylval = install(yytext);
> return c;
> 
> (There's no "->" function either...)

You can also use expression() to see what various expressions are parsed as:

  > expression(2**5)
  expression(2^5)

  > expression(3->x)
  expression(x <- 3)

-- 
Karl Ove Hufthammer



More information about the R-devel mailing list