help-bison
[Top][All Lists]
Advanced

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

Re: bison and C++


From: Satya
Subject: Re: bison and C++
Date: Tue, 12 Dec 2006 17:09:40 -0600

No, you dont need to use the C++ skeleton. Just put an extern "C"
declaration at the beggining of your parser file (.y file)  e.g.,

extern "C"
{
   int yyparse ( void );
   int yylex   ( void );
   int yywrap  ();
   void yyerror ( char* );
}

satya.
--
Work expands to fill the time available for its completion (Parkison's law).
http://cs.uic.edu/~spopuri

On 12/11/06, Michel Meynard <address@hidden> wrote:

Hello
i want to write a parser with bison using some containers from STL but i
don't need an oriented objet parser : yyparse() is sufficient for me !
Have i to use skeleton and all the C++ stuff of bison manual  ?

--
Cordialement, Michel Meynard.
----------------------------------------
Michel Meynard (e-mail : address@hidden)
161, rue ada
34392 Montpellier Cedex 5
France
tel. : (33) 04 67 41 85 40        fax :  (33) 04 67 41 85 00
web : www.lirmm.fr/~meynard



_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison



reply via email to

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