help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Frans Englich
Subject: Re: "Eating" comments: not with Flex but with Bison
Date: Wed, 15 Jun 2005 14:54:47 +0000
User-agent: KMail/1.8.50

On Tuesday 14 June 2005 15:15, Tim Van Holder wrote:
> Frans Englich wrote:
> > On Tuesday 14 June 2005 11:36, Akim Demaille wrote:
> >>>>>"Frans" == Frans Englich <address@hidden> 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, to have a clean, pure, interface bw the two.
> >
> > Ok, not fully following here, what you mean with "make them available to
> > the scanner".
> > [snip]
> > Hm, then have error handling been placed in the scanner, which confuses
> > me with respect to "You can easily make them available to the scanner.
> > And in fact, you probably should, to have a clean, pure, interface bw the
> > two."(assuming my interpretation is correct).
>
> What Akim meant is that whatever information you pass to the parser
> should also be passed down to the lexer.

Aha, now I see the source to the confusion; I saw "passing" as referring to 
tokens while intended was user parameters, likely because the latter was a 
solution far away from me.

Thanks everyone, it worked out just fine.


Cheers,

                Frans




reply via email to

[Prev in Thread] Current Thread [Next in Thread]