Re: X3 employee example with semantic actions
Seth <[email protected]> Thu, 7 Jun 2018 08:31:26 +0200
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 05-06-18 20:38, Maarten Verhage wrote: > In the meantime I've learned by fortunate accident that the parser directive > **raw** will provide me the iterator range I'm after "fortunate accident" :) I presume, then, that was when I posted it in reply to you on this mailing list? On 03-06-18 23:09, Seth wrote: > On 03-06-18 16:23, Maarten Verhage wrote: >> Dear people, >> >> My application goal is as follows: >> >> 1) parse an ascii file, >> 2) modify a few things, >> 3) write it back. >> >> However the file has portions that I just don’t need to modify. For these >> portions I just want Spirit to provide me two iterators into the original >> input so I can std::copy that portion to a memory area that will become my >> new file. > Separate idea: > https://stackoverflow.com/questions/36994539/boost-spirit-x3-parser-which-produces-offsets-into-the-original-string/37003186#37003186 > > Keep in mind you can have several semantic actions, so > > raw [ (int >> ':' >> double) [store_values] ] > [store_iterator_range]) > > is perfectly fine > ------------------------------------------------------------------------------ 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