> Le 14 août 2015 à 18:14, Kaz Kylheku a écrit :
Hi Kaz,
> Simple two-file test case:
>
> /* parser.y - */
> %{
>
> #include
>
> typedef struct {
> int dummy;
> } private_context;
>
> %}
>
> %pure-parser
> %parse-param{private_context *ctx}
>
> %union {
> char *str;
> }
On 18.08.2015 02:06, Akim Demaille wrote:
Le 14 août 2015 à 18:14, Kaz Kylheku a écrit :
If we translate parser.y with "bison --yacc -d" to generate a y.tab.h
and y.tab.c,
the y.tab.h contains:
int yyparse (private_context *ctx);
I think that adding
%code requires
{
struct private_con
On 18.08.2015 06:35, I blundered:
Hi Akim,
The example I gave is (to my best knowledge and effort)
POSIX-conforming Yacc code.
Hi Akim, and everyone,
Sorry for the above nonsense; of course it obviously is
not due to the
%pure-parser
%parse-param{private_context *ctx}
which is important
Hi!
> Le 18 août 2015 à 15:35, Kaz Kylheku a écrit :
> While on the topic of POSIX, what does it have to say about
> the y.tab.h header file?
>
> -d Write the header file; by default only the code
> file is written. The #define statements associate the
> token codes assigned by yacc
> Le 18 août 2015 à 16:40, Kaz Kylheku a écrit :
>
> On 18.08.2015 06:35, I blundered:
>> Hi Akim,
>> The example I gave is (to my best knowledge and effort)
>> POSIX-conforming Yacc code.
>
> Hi Akim, and everyone,
>
> Sorry for the above nonsense; of course it obviously is
> not due to the
>
On 18.08.2015 12:36, Akim Demaille wrote:
Hi!
Le 18 août 2015 à 15:35, Kaz Kylheku a écrit :
While on the topic of POSIX, what does it have to say about
the y.tab.h header file?
-d Write the header file; by default only the code
file is written. The #define statements associate the
On 18.08.2015 12:40, Akim Demaille wrote:
Le 18 août 2015 à 16:40, Kaz Kylheku a écrit :
On 18.08.2015 06:35, I blundered:
Hi Akim,
The example I gave is (to my best knowledge and effort)
POSIX-conforming Yacc code.
Hi Akim, and everyone,
Sorry for the above nonsense; of course it obviously
Hi Kaz!
Thanks for taking the time to write a detailed answer.
> Le 18 août 2015 à 22:32, Kaz Kylheku a écrit :
>
> On 18.08.2015 12:36, Akim Demaille wrote:
>> Hi!
>>> Le 18 août 2015 à 15:35, Kaz Kylheku a écrit :
>>> While on the topic of POSIX, what does it have to say about
>>> the y.tab.