From murdoch at stats.uwo.ca  Mon Mar 23 12:30:38 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 23 Mar 2009 07:30:38 -0400
Subject: [Rd] Why does the lexical analyzer drop comments ?
In-Reply-To: <49C735FC.10408@dbmail.com>
References: <8903928.174261237575367141.JavaMail.www@wwumf0207>	<49C3EC00.5080302@stats.uwo.ca>	<49C400C8.7040208@biostat.ku.dk>	<49C40342.60203@dbmail.com>
	<49C6A4AB.2020300@dbmail.com>	<49C6D208.4060009@stats.uwo.ca>
	<49C735FC.10408@dbmail.com>
Message-ID: <49C772DE.6060307@stats.uwo.ca>

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



[Rd] Why does the lexical analyzer drop comments ?
Duncan Murdoch