[R] how R parses expression?
Duncan Murdoch
murdoch at stats.uwo.ca
Tue Dec 7 07:33:03 CET 2004
On Tue, 7 Dec 2004 11:39:30 +0800, "xudongyuan"
<dongyuan.xu at huiway.com> wrote:
>Hi.All and R developers:
> Since I am a beginner on R,I have some questions when I studied the source code.I wonder if anyone have time to help me?
> My question is how the R expressions change to the c code. That is when I input an expression to the GUI or from a file, how R converts the expression to the parse tree in C code(maybe it is a C function, then what is it?), and then does the sequent processes.
R expressions aren't converted to C code. They are parsed internally
using a parser written in yacc (or bison), which converts them into R
objects. Other parts of the interpreter work with those.
Duncan Murdoch
More information about the R-help
mailing list