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 <[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, 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


_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to