| 6088 | for the `parser` argument is undefined. */ |
| 6089 | template<typename Parser, typename GlobalState, typename ErrorHandler> |
| 6090 | auto with_globals( |
| 6091 | parser_interface<Parser, detail::nope, ErrorHandler> const & parser, |
| 6092 | GlobalState & globals) |
| 6093 | { |
| 6094 | return parser_interface<Parser, GlobalState &, ErrorHandler>{ |
| 6095 | parser.parser_, globals, parser.error_handler_}; |
| 6096 | } |
| 6097 | |
| 6098 | /** Returns a `parser_interface` with the same parser and globals, with |
| 6099 | `error_handler` added. The result of passing any non-top-level parser |