Re: splitted source (decl, def) gives compile errors byy use for test suite
Olaf Peter <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Tom, > I instatiante my parser at point of use like this > > #include"KicadParser/SchematicFile/SchematicFileGrammar.hpp" > > #include"KicadParser/SchematicFile/SchematicFileParserConfig.hpp" > > autoconstschParser= > > //wepassourerrorhandlertotheparsersowecanaccess > > //itlateroninouron_errorandon_sucesshandlers > > boost::spirit::x3::with<client::KicadFileParser_grammar::error_handler_tag>(std::ref(error_handler)) > > [ > > client::schematicFile() > > ]; but how do you iterative develop the rules and use them by the tests (suite), e.g. testing the production rule schematicDescription? I don't know about the BNF of KiCAD's schematic, but I would assume that the comment lines here would be optional etc. Even this format file definition looks quite simple, there are test cases to be checked at this rule. Thank you, Olaf ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot