bug-bison
[Top][All Lists]
Advanced

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

bison b4_pre_prologue problem


From: Paul Eggert
Subject: bison b4_pre_prologue problem
Date: Thu, 29 Dec 2005 13:12:14 -0800

twlevo asked the following question:


Is ]b4_pre_prologue[ different in yacc mode?

Try the program at the end of this message with and without the
`%glr-parser' line.

is this correct?

Thanks.
line 177 glr.c, line 170 yacc.c ]b4_pre_prologue[


--------

/* */
%glr-parser 

%{

/*
 * pre prologue copied in y.tab.h file
 * at GLR parser mode and `bison -d'
 * option is used.
 *
 * but not copied at yacc parser mode.
 */

#include <stdio.h>

void something (void)
{
    return;
}

%}

%token ONETOKEN

%union { int number; }

%{

/*
 * post prologue 
 */

%}

%%

start:
    ;

%%





reply via email to

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