Re: Design/structure X3 parser more like Qi parser
Larry Evans <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 01/04/2017 12:39 PM, Larry Evans wrote: > On 12/20/2016 03:02 AM, Sandro Pirkwieser wrote: > > Hi Larry, > > > >> This doesn't use BOOST_SPIRIT_DEFINE, and I don't think it can because > >> that would generate one or more parse_rule's template functions within > >> the make_csv_parser function. Is that right? > >> If so, then wouldn't that make this method slower to compile than if > >> BOOST_SPIRIT_DEFINE could be used? > > > > yes, to my knowledge using BOOST_SPIRIT_DEFINE inside a function, > e.g. make_csv_parser, is not possible. > > But I don't know whether this influences compile time. > > According to: > > https://github.com/cppljevans/spirit/blob/get_rhs/workbench/x3/rule_defns/bench.tmp > > there's a significant compile-time penalty without using > BOOST_SPIRIT_DEFINE. > The bench.tmp now includes a 5th method and rules starting at 8. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot