Re: X3: How to write generic rules

Mike Gresens <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Beautiful! Thanks a lot!

To be sure when to use BOOST_SPIRIT_DEFINE, rule and rule_def:

I need BOOST_SPIRIT_DEFINE() if i have a x3:rule<ID, DataType> rule and a
rule_def.
I need x3:rule<ID, DataType> rule if i want to produce special DataType
(like a struct).

For all other cases i can simply use auto xyz_rule = <composition of other
rules>, because the produced DataType is implicitly given.

That's right?

Still not sure when to use x3::as_parser() ...



--
View this message in context: http://boost.2283326.n4.nabble.com/X3-How-to-write-generic-rules-tp4682990p4683026.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.