//String selector = "div#id.class span.class2 > #id3 ~ intbox";
//String selector = "[attr$=\"value\"] + div:pseudo(2)[attr2*=596] tab#kerker";
String selector = ":first-child";
List<Token> tokens = new Tokenizer().tokenize(selector);
Parser p = new Parser();
p.setDebugMode(true);
Selector model = p.parse(tokens, selector);
System.out.println("\n\n==== Selector ====\n\n");
System.out.println(model.toDebugString());
System.out.println("\n\n==== Selector repacked ====\n\n");
System.out.println(model);