Parsing CSS with Boost.Spirit X3
问题 I'm attempting to write a (partial) CSS parser using Boost.Spirit X3. I have the (very) basic setup working: const auto declaration_block_def = '{' >> +declaration >> '}'; const auto declaration_def = property >> ':' >> value >> ';'; const auto property_def = +(char_ - ":"); const auto value_def = +(char_ - ";"); Here value is just a simple string parser, and property a symbol table of all the CSS property names to an enum listing all the properties. But now I wonder if I couldn't in some way