Questions about Spirit.Qi sequence operator and semantic actions
问题 I have some questions about the sequence operator and semantic actions in Spirit Qi. I'm trying to define a grammar rule for a floating point number that accepts metric prefixes (u, m, k, M, etc.) as well as the normal exponent form. rule<Iterator, std::string()> sign = char_("+-") [ _val = _1 ]; rule<Iterator, std::string()> exp = char_("eE") >> -sign >> +digit; rule<Iterator, std::string()> suffix = char_("yzafpnumkKMGTPEZY") [ _val = _1 ]; rule<Iterator, std::string()> mantissa = ((*digit