protected PseudoSelector pseudo(String ident, PseudoType type, boolean doubleColon) throws ParserException {
int initialPost = pos;
StringBuilder sb = new StringBuilder();
sb.append(ident);
PseudoExpression expression = null;
if (!end() && current == '(') {
sb.append(current);
next();
ignoreWhitespaces();
if (end()) {
throw new ParserException("Expected expression at position " + pos);
}
//expression
expression = expression();
sb.append(expression.getContext());
//close parenthesis
ignoreWhitespaces();
if (end() || current != ')') {
throw new ParserException("Expected ')' at position " + pos);