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.
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison