[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison 2.6.2 generates incompatible header file
From: |
Frank Heckenbach |
Subject: |
Re: bison 2.6.2 generates incompatible header file |
Date: |
Thu, 18 Oct 2012 23:22:59 +0200 |
Bill Allombert wrote:
> On Thu, Oct 18, 2012 at 06:52:41PM +0200, Frank Heckenbach wrote:
> > Bill Allombert wrote:
> >
> > We do compile our Bison output with g++ (yes, we should probably use
> > the C++ skeleton, but we haven't gotten around to it yet), and we
> > don't use extern "C" -- in fact we use two different parsers in one
> > executable and we put them in different C++ namespaces to avoid
> > conflicts. (After the recent changes, this may no more be necessary
> > as I understand, we'll have to check this after an upgrade ...)
>
> How do you put them in separate namespace ?
foo.y:
%{
#define IN_BISON
#include "foo.h"
namespace foo
{
// some declarations, including yyerror
%}
// grammar and everything
%%
}
foo.h:
#include <...>
namespace foo
{
// various other declarations
#ifndef IN_BISON
int yyparse (...);
#endif
}
Not sure if it's supposed to work like this, but currently it does. :)
Frank
- bison 2.6.2 generates incompatible header file, Chuan-kai Lin, 2012/10/17
- Re: bison 2.6.2 generates incompatible header file, Bill Allombert, 2012/10/17
- Re: bison 2.6.2 generates incompatible header file, Akim Demaille, 2012/10/18
- Re: bison 2.6.2 generates incompatible header file, Bill Allombert, 2012/10/18
- Re: bison 2.6.2 generates incompatible header file, Akim Demaille, 2012/10/18
- Re: bison 2.6.2 generates incompatible header file, Bill Allombert, 2012/10/18
- Re: *** GMX Spamverdacht *** Re: bison 2.6.2 generates incompatible header file, Frank Heckenbach, 2012/10/18
- Re: *** GMX Spamverdacht *** Re: *** GMX Spamverdacht *** Re: bison 2.6.2 generates incompatible header file, Frank Heckenbach, 2012/10/18
- Re: *** GMX Spamverdacht *** Re: bison 2.6.2 generates incompatible header file, Bill Allombert, 2012/10/18
- Re: bison 2.6.2 generates incompatible header file,
Frank Heckenbach <=
- Re: bison 2.6.2 generates incompatible header file, Akim Demaille, 2012/10/19
- Re: *** GMX Spamverdacht *** Re: bison 2.6.2 generates incompatible header file, Frank Heckenbach, 2012/10/19
- Re: bison 2.6.2 generates incompatible header file, Akim Demaille, 2012/10/19
- Re: bison 2.6.2 generates incompatible header file, Akim Demaille, 2012/10/21
- Re: bison 2.6.2 generates incompatible header file, Chuan-kai Lin, 2012/10/21
- Re: Bug#689700: bison 2.6.2 generates incompatible header file, Chuan-kai Lin, 2012/10/29
Re: bison 2.6.2 generates incompatible header file, Bill Allombert, 2012/10/22