Related articles |
---|
flex/bison & C++ matthew@tedder.com (2001-10-13) |
Re: flex/bison & C++ bettini@dsi.unifi.it (Lorenzo Bettini) (2001-10-16) |
Re: flex/bison & C++ alexc@world.std.com (2001-10-20) |
From: | Lorenzo Bettini <bettini@dsi.unifi.it> |
Newsgroups: | comp.compilers |
Date: | 16 Oct 2001 00:10:04 -0400 |
Organization: | Dipartimento Sistemi e Informatica, Univ. di Firenze |
References: | 01-10-056 |
Keywords: | yacc, C++ |
Posted-Date: | 16 Oct 2001 00:10:04 EDT |
"Matthew C. Tedder" wrote:
>
> I've written the following:
>
> prog.l -- flex code that link together with bison's output
> prog.y -- bison's code that calls the flex output yylex().
> prog.cpp -- C++ objects with methods I'd like to call from bison
>
> Does anyone have any idea how I can do the last part? I've spent so much
> time working on the C++ methods and it also uses C++ libraries for GUI
> stuff.
I always do that: simply compile the output of flex and bison with a C++
compiler: the generated code can handle this.
Lorenzo
--
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD student in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4796741, Fax +39 055 4796730 |
| Florence - Italy (Linux User # 158233) |
Return to the
comp.compilers page.
Search the
comp.compilers archives again.