Re: setting attribute value from on_error handler
Kent Hauser <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <etPan.57058650.4f212ce1.58c5@kent-mbp> |
That’s what I tried, but with no luck. I can print my “ast” in the `on_error` handler, assign it `x3::_val(context) = ast`, but the `ast` from the previous iteration of the `parse_phrase` loop is what I see in the application code. For what it’s worth, I also update `first` with a resync parser & that works great. Thanks. On April 6, 2016 at 3:26:08 AM, Mario Lang ([email protected]) wrote: Kent Hauser <[email protected]> writes: > Is there a context variable (or other method) to set the parse > attribute in an `on_error` handler. Have you tried _val(context)? -- CYa, ⡍⠁⠗⠊⠕ ------------------------------------------------------------------------------ _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general ------------------------------------------------------------------------------ _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general