[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison for C++
From: |
Akim Demaille |
Subject: |
Re: Bison for C++ |
Date: |
Wed, 27 Jan 2010 14:24:50 +0100 |
Le 21 janv. 2010 à 15:06, 魏佳 a écrit :
> Hello Every one,
>
> I have a problem with bison, please help me.
>
> How do I add "friend class CSV" to c++ parser file that was maked by bison?
> for example
>
> csv_parser.ypp
>
> ...
> %define parser_class_name "csv_parser"
> ...
>
> I want get
>
> class csv_parser
> {
> ...
> public:
> friend class CSV;
> ...
> };
There is nothing available to make this :( Your best bet is to modify the
output file with some tool such as sed.
Sorry about this.
- Bison for C++, 魏佳, 2010/01/21
- Re: Bison for C++,
Akim Demaille <=