/** Returns true if the next token is a right parenthesis (without consuming it) */ public boolean isRP() throws ParserException { ILexToken token = peekToken(); return (token.kind() == LexToken.RP); }