Re: [Spirit-general] Attribute compatibility and Semantic actions
"Hartmut Kaiser" <[email protected]> Tue, 15 Feb 2011 08:36:39 -0600
| Newsgroups | gmane.comp.parsers.spirit.devel,gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
> Now, I committed code to the boost trunk that allows attribute > compatibility on semantic actions. This code (Boost trunk) will kick in > when you > > #define BOOST_SPIRIT_ACTIONS_ALLOW_ATTR_COMPAT > > This is necessary because the code is **will break existing code**. > Without the define, the old behavior will work as usual. > > So, what are the advantages: > > 1) The nice attribute compatibility rules can now apply to > semantic actions giving us uniform behavior > 2) Parsers with semantic actions will now be a lot more > efficient. While semantic-action-less attribute grammars > are cool, a lot of times, we still have to resort to SAs > to do some computation. This behavior will again give SAs > equal footing in terms of performance. That's great! Although my guess is that it will not break too much of existing code. The change rather extends what's possible. Have you tried compiling the existing tests with this constant defined? Now I need to implement something similar for Karma, I believe... Regards Hartmut --------------- http://boost-spirit.com ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb