Re: "Eating" comments: not with Flex but with Bison

2005-06-14 Thread Akim Demaille
>>> "Frans" == Frans Englich <[EMAIL PROTECTED]> writes: > I would prefer to do this at the Bison/Parser level because it is > convenient: I have access to various information passed to the > parse function, You can easily make them available to the scanner. And in fact, you probably should,

Re: "Eating" comments: not with Flex but with Bison

2005-06-14 Thread Frans Englich
On Tuesday 14 June 2005 11:36, Akim Demaille wrote: > >>> "Frans" == Frans Englich <[EMAIL PROTECTED]> writes: > > > > I would prefer to do this at the Bison/Parser level because it is > > convenient: I have access to various information passed to the > > parse function, > > You can easily make

Re: "Eating" comments: not with Flex but with Bison

2005-06-14 Thread Kelly Leahy
Frans, If I understand you correctly, you want to know whether comments were in the source, but you don't care about the exact contents of the comments, right? If this is the case, how much do you need to know about the comments? Do you need, for instance, the line number on which they appeared,

Re: "Eating" comments: not with Flex but with Bison

2005-06-14 Thread Tim Van Holder
Frans Englich wrote: > On Tuesday 14 June 2005 11:36, Akim Demaille wrote: > >"Frans" == Frans Englich <[EMAIL PROTECTED]> writes: >> >> > >> > I would prefer to do this at the Bison/Parser level because it is >> > convenient: I have access to various information passed to the >> > parse funct