This commit is contained in:
Eric Mertens 2023-12-04 17:08:08 -08:00
parent 829c9aafce
commit f9215e1b63

View File

@ -35,9 +35,9 @@ struct Grammar : public qi::grammar<std::string::const_iterator, std::vector<Car
using namespace qi::labels; using namespace qi::labels;
cards = *card; cards = *card;
card = card =
"Card" >> qi::ulong_long [ phx::bind(&Card::id, _val) = _1] >> ":" >> "Card" >> qi::ulong_long [ phx::bind(&Card::id , _val) = _1] >>
(*qi::ulong_long) [ phx::bind(&Card::mine, _val) = _1] >> "|" >> ":" >> (*qi::ulong_long) [ phx::bind(&Card::mine , _val) = _1] >>
(*qi::ulong_long) [ phx::bind(&Card::winners, _val) = _1]; "|" >> (*qi::ulong_long) [ phx::bind(&Card::winners, _val) = _1];
} }
}; };