[Rd] Why does the lexical analyzer drop comments ?

Duncan Murdoch murdoch at stats.uwo.ca
Mon Mar 23 12:30:38 CET 2009


On 23/03/2009 3:10 AM, Romain Francois wrote:
> Duncan Murdoch wrote:
  ....
>> However, it might make sense for you to have your own parser, based on 
>> the grammar in R's parser, but handling white space differently. 
>> Certainly it would make sense to do that before making changes to the 
>> base R one.  The whole source is in src/main/gram.y; if you're not 
>> familiar with Bison, I can give you a hand.
> 
> Thank you, I appreciate your help. Having my own parser is the option I 
> am slowly converging to.
> I'll start with reading bison documentation. Besides bison documents, is 
> there R specific documentation on how the R parser was written ?

I don't think so.

Duncan Murdoch



More information about the R-devel mailing list