Re: Attribute compatibility and Semantic actions
Mathias Gaunard <[email protected]> Tue, 15 Feb 2011 13:11:58 +0100
| Newsgroups | gmane.comp.parsers.spirit.devel,gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 15/02/2011 05:17, Joel de Guzman wrote: > 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. This is great news! I'll define this macro and test across my applications ASAP. ------------------------------------------------------------------------------ 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