[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yyerror and pure parsers
From: |
wim delvaux |
Subject: |
Re: yyerror and pure parsers |
Date: |
Sun, 25 Jan 2004 16:13:41 +0100 |
User-agent: |
KMail/1.5.4 |
On Saturday 24 January 2004 18:39, Hans Aberg wrote:
> At 02:18 -0500 2004/01/24, Alfonso Urdaneta wrote:
> >wim delvaux wrote:
> >> Is there any way to access the arguments passed to yyparse
> >>(YYPARSE_PARAM or
> >> equivalent -- see previous mail) within the yyerror function ?
> >
> >sorry dude, haven't done that stuff before. maybe hans knows.
>
> I have no idea if it is possible to do with the standard skeleton file. But
> with Bison's M4 approach, it is fairly easy to write ones own new skeleton
> file (by modifying the standard one), where this becomes possible.
>
> If you want such rewrites should be included in future Bison distributions,
> that should be discussed in the Bug-Bison list.
>
> Hans Aberg
I have looked at an example of flex which includes a sample with a
pure-parser bison.
I noticed that they use %parse-param and %flex-param (or lex-param ?)
but
these options are not documented in the bison 'info' file.
Is that an omission ? Hidden Feature ? Internal Feature ? ???
W