Re: limited c++ functions in lex/yacc compilers

"Blake Stone" <brian@NOSPAMibc.com.au>
6 Dec 2000 00:08:31 -0500

          From comp.compilers

Related articles
limited c++ functions in lex/yacc compilers brian@ibc.com.au (Blake Stone) (2000-12-03)
Re: limited c++ functions in lex/yacc compilers brian@NOSPAMibc.com.au (Blake Stone) (2000-12-06)
| List of all articles for this month |
From: "Blake Stone" <brian@NOSPAMibc.com.au>
Newsgroups: comp.compilers
Date: 6 Dec 2000 00:08:31 -0500
Organization: Customer of Telstra Big Pond Direct
References: 00-12-011
Keywords: C++, yacc
Posted-Date: 06 Dec 2000 00:08:31 EST

Hi All,


        In response to myself...One workaround is to create a separate
class that has all of the map functionality inside it. The problem is
then how to pass the maps or vectors to wherever they are needed. The
better solution I went with was to create a virtual function which is
overridden in the calling class. The parser the id of the calling
class to pass values back where they can be mapped and stored for
later reference.


Cheers,


Blake


"Blake Stone" <brian@ibc.com.au> wrote in message
> There are some lex/yacc compilers that generate C++ code lex/yacc
> code but do any actually cater for C++ specific functions?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.