private Selector parseSelector() {
		//System.out.println("parseSelector");
		Selector node = new Selector();
		while(nextIs("dot") || nextIs("lb")) {
			switch (showNext().getKind()) {
			case "dot":
				acceptIt();
				Identifier id = new Identifier(expect("ident"));
				node.getChain().add(new IdentSelector(id));
				break;
			case "lb":
				acceptIt();
				Expression expr = parseExpression();
				expect("rb");
				node.getChain().add(new TabSelector(expr));
				break;
			default:
				this.console.setText(this.console.getText() + "<br> Error at: L" +showNext().getPos()[0] +"c"+showNext().getPos()[1]+ " wrong selector : expecting '.' or '['. Got "+showNext().getKind());
			}
		}
		return node;
	}