OOPS. for x3 use BOOST_SPIRIT_X3_DEBUG (was Re: X3 employee example with semantic actions

Larry Evans <[email protected]> Sun, 3 Jun 2018 12:18:15 -0500
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 06/03/2018 12:01 PM, Larry Evans wrote:
> On 05/30/2018 04:50 PM, Henri Menke wrote:
>>
>>
[snip]
>>
>> It is much easier than that.  Just add
>>
>> #define BOOST_SPIRIT_DEBUG
>>
>> before including any Spirit headers.  Then in the grammar of the 
>> employee example you add
>>
>> BOOST_SPIRIT_DEBUG_NODE(quoted_string);
>> BOOST_SPIRIT_DEBUG_NODE(start);
>>
[snip]
> [snip]
> I was having trouble with this.  I was getting error about
> BOOST_SPIRIT_DEBUG_NODE not being defined:
> 
> x3-employee-beg_end_attr_actions.cpp:94:9: error: unknown type name 
> 'BOOST_SPIRIT_DEBUG_NODE'
>          BOOST_SPIRIT_DEBUG_NODE(employee);
>          ^
> 1 error generated.
 >
> So, grep'ed for that macro and found:
> 
[snip]

> So it appears that only works for classic or karma but not for x3?
> 
Did another grep, but just for BOOST_SPIRIT and found for x3, the
macro is BOOST_SPIRIT_X3_DEBUG.
> -regards,
> Larry
> 
> 
> ------------------------------------------------------------------------------ 
> 
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Spirit-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spirit-general



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general