Re: splitted source (decl, def) gives compile errors byy use for test suite
Tom Kulaga <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <CAMWfBPFe8ZRKZwLoXNBbpwedc6nDhchhv4+XC2WaqR6ZeLHPsw@mail.gmail.com> |
I've got an iterative rule set at home (at least if we're both thinking of iterative in the same sense, where rules compose up of other rules). I can send some snippets a little later. As for the testing suite I'll take a look at what I have and see if it helps. On Thu., 2 Mar. 2017, 6:07 pm Olaf Peter, <[email protected]> wrote: > Hello Tom, > > > I've had success using the method used in the calc examples: > > > > https://github.com/boostorg/spirit/tree/develop/example/x3/calc/calc7 > > > > Have a > > String_literal.hpp > > String_literal_def.hpp > > String_literal.cpp > > yes, I use this approach. The problem rise if I want to test each > production in a test suite. calc7 shows: > > namespace client { > ... > namespace calculator_grammar { > struct expression_class; > typedef x3::rule<expression_class, ast::expression> > expression_type; > BOOST_SPIRIT_DECLARE(expression_type); > } > calculator_grammar::expression_type expression(); > } > > and expose the top rule, but for testing parts of the grammar a lot of > them are required. > > The other question may be behind: How to clever write iterativ the rule > definitions to avoid drowning in compiler errors? > > > ------------------------------------------------------------------------------ > 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