/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
/** * Reads the next token. * @param ignoreComments If set, comments will be overread * @return Return the token id. * @exception CoreException Thrown when the end of the file has been reached (code END_OF_FILE) * or a lexical error was detected while scanning (code LEXICAL_ERROR) */ public int readNext(boolean ignoreComments) throws CoreException { int curr= 0; do { try { curr= this.scanner.getNextToken(); if (curr == TerminalTokens.TokenNameEOF) { throw new CoreException(createError(END_OF_FILE, "End Of File", null)); //$NON-NLS-1$ } } catch (InvalidInputException e) { throw new CoreException(createError(LEXICAL_ERROR, e.getMessage(), e)); } } while (ignoreComments && isComment(curr)); return curr; }
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
int nextStart= startPos; loop: while (true) { if (TokenScanner.isComment(tok)) { tok= scanner.readNext(true); // next non-comment token
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);
while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false); TokenScanner scanner = getScanner(); int nextToken= scanner.readNext(currEnd, false); if (TokenScanner.isComment(nextToken)) { while (TokenScanner.isComment(scanner.readNext(newOffset, false))) { int tempOffset = scanner.getNextEndOffset(newOffset, false);