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. thanks dongyuan xu
I'm not really sure exactly what you are getting at. Much of R's functionality is built using the R language itself. If you are looking to interface with other languages you might want to start with the "Writing R Extensions" manual which has a section on "The R API: entry points for C code." If you are using the windows version this manual ia available from the help menu (assuming you installed the documentation.) Tom Mulholland R 2.0 4-Oct-2004 Windows XP> -----Original Message----- > From: xudongyuan [mailto:dongyuan.xu at huiway.com] > Sent: Tuesday, 7 December 2004 11:40 AM > To: r-help at stat.math.ethz.ch > Subject: [R] how R parses expression? > Importance: High > > > 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. > thanks > > dongyuan xu > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
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