
17 Apr
2008
17 Apr
'08
8:32 p.m.
Olaf Peter wrote:
Hi,
I'm using a lot of functor parsers and combine them in one grammar. Now, my grammar explodes at the time. Therefore I want to split/compile the functor parsers into separate files. This requires a forward declaration. Well, how to perform this??
spirit::functor_parser<functor> functor_p;
is an instance.
The same ideas mentioned here: http://spirit.sourceforge.net/distrib/spirit_1_8_5/libs/spirit/doc/faq.html#... should help. I.e. Put the function bodies in separate cpp files (possibly using explicitly) instantiation) Anyway, FYI, here's the Spirit user's mailing list: https://lists.sourceforge.net/lists/listinfo/spirit-general Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net