| www.delorie.com/archives/browse.cgi | search |
| Posted-Date: | Mon, 03 Jun 1996 09:30:37 +0200 |
| Received-Date: | Mon, 3 Jun 1996 09:24:03 +0200 |
| Message-Id: | <31B2949D.60A4@snapp.hrp.no> |
| Date: | Mon, 03 Jun 1996 09:30:37 +0200 |
| From: | Gregory Louapre <Gregory DOT Louapre AT hrp DOT no> |
| Organization: | Institutt For Energiteknikk |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| Subject: | Help about bison and flex. |
1st question: (BISON)
-------------
I am looking for the equivalent of yacc++ on the PC.
I have already the gnu compiler and the bison tool.
But as i read the documentation i couldn't find anything about an
option to switch to bison++ or something like that.
I know that with flex you can use the \-+ option to specify flex
to generate a C++ scanner class.
Is there anybody aware about such an option for bison, or is
there another tool for such a thing.
2nd question: (FLEX)
-------------
Another question, what do you mean exactly by a C++ scanner
class. My problem to be precise is that i redefine the YYSTYPE
macro. Normally by default it is defined as an int. But when i
will compile i want to redefine this macro such as:
#define YYSTYPE cYaccStackElem
With:
class cYaccStackElem
{
public:
CString ystr;
CcType ytype;
cYaccStackElem ()(ytype=VOID_TYPE;);
CString ystrAdd;
};
So my second question is to know if this C++ scanner class allows
me to write my source code as above.
--
Thanks for your time.
Gregory LOUAPRE.
Institutt for Energiteknikk.
Postboks 173,
N-1751 Halden.
NORWAY.
e-mail addresses:
gregoryl AT hrp DOT no (NORWAY).
glouapre AT unix1 DOT rtc-waterford DOT ie (IRELAND).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |