Umm, did you try compiling with /bigobj?
Jeff
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
The mini-c example project shows how to split up grammars properly,
may take a look at it.
Also, you will get more responses if you post to the Spirit list instead.
I highly suggest moving to spirit2 if you are planning to do any
refactorization. In spirit2 (http://spirit.sourceforge.net/home/)
we have some examples that highlight this:
calc6, calc7 and mini_c are examples of modular grammar constructions.
calc6 is simplest of the three and shows how you can:
1) embed grammars for modularization
2) separate the grammar definition (constructor) from the class declaration
3) instantiate a particular grammar template in a cpp file.
Regards,
--
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
http://www.facebook.com/djowel
Meet me at BoostCon
http://www.boostcon.com/home
http://www.facebook.com/boostcon
Would you be able to provide a direct link to the calc6, calc7 examples?
They don't appear to be directly linked or described on the documentation
page at:
http://spirit.sourceforge.net/home/spirit2/libs/spirit/doc/html/index.html
Thank you.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
http://svn.boost.org/svn/boost/trunk/libs/spirit/example/qi/calc6/
HTH,
Chris
But that's exactly what has been done. The grammar/rule definitions are
located in the constructors of the grammars which have been moved out into
separate files.
> About your point (1), I think Classic Spirit also support this. You
> can have a rule that embed a grammar which is defined in a different
> file.
Sure, but it's more difficult to achieve.
Regards Hartmut
-------------------
Meet me at BoostCon
http://boostcon.com
> ________________________________________