help-bison
[Top][All Lists]
Advanced

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

Re: bison & flex


From: Hans Aberg
Subject: Re: bison & flex
Date: Thu, 18 Oct 2001 14:49:41 +0200

At 09:58 +0000 2001/10/18, Pascal Bart wrote:
>Bison doesn't generate C++ parser, it will be done in fewer week, but for
>the moment you have to use C.

The C parser that Bison generates compiles just fine under C++ (which can
be used until Bison provides genuine C++ support).

The C++ parser that Flex generates compiles fine under current C++ if one
adds the namespace "std::" onto some names, so that they become "std::cout"
etc.. -- Edit Flex's skeleton file for this. (Flex was last developed in
1996 or something, and the C++ standard with namespaces is later, from
1998.)

  Hans Aberg





reply via email to

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