Boost logo

Boost Users :

Subject: [Boost-users] Boost.Spirit Karma: how to store generator?
From: Matwey V. Kornilov (matwey.kornilov_at_[hidden])
Date: 2016-02-28 14:05:44


After reading Karma tutorial, I still don't understand whether there a
way to store generator except

auto my_generator = ...

I would like to generate text representation for many similar objects
and I think that it is worth to use single generate object and pass it
to generate_delimited() by const reference.

Are there such things like qi::rule<> and qi::grammar for Karma?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at