2 #include "../context.hpp"
3 #include "../parser.hpp"
9 Context ctx = Context::Data();
11 Compound_Selector* selector(std::string src)
12 { return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_compound_selector(); }
14 void diff(std::string s, std::string t)
16 std::cout << s << " - " << t << " = " << selector(s + ";")->minus(selector(t + ";"), ctx)->to_string() << std::endl;
21 diff(".a.b.c", ".c.b");
22 diff(".a.b.c", ".fludge.b");