public boolean matchId(){
  return tok.ttype == StreamTokenizer.TT_WORD && !keywords.contains(tok.sval);
}

public boolean matchId ( ) { return tok . ttype == StreamTokenizer . TT_WORD && ! keywords . contains ( tok . sval ) ; }
returns true if the current token is a legal identifier .
