// Path: src/main/java/org/anarres/cpp/Token.java
// public static final int EOF = 265;


import java.io.IOException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import javax.annotation.Nonnull;
import static org.anarres.cpp.Token.EOF;
     *		throws a LexerException or IOException
     */
    @Override
    public boolean hasNext() {
        advance();
        return tok.getType() != EOF;
    }

    /**
     * Returns the next token from the enclosed Source.
     *
     * The EOF token is never returned by the iterator.
     * @throws IllegalStateException if the Source
     *		throws a LexerException or IOException
     */
    @Override
    public Token next() {
        if (!hasNext())
            throw new NoSuchElementException();
        Token t = this.tok;
        this.tok = null;
        return t;
    }

    /**
     * Not supported.
     *
     * @throws UnsupportedOperationException unconditionally.
     */
    @Override
// Path: src/main/java/org/anarres/cpp/Token.java
// public static final int EOF = 265;


// Path: src/main/java/org/anarres/cpp/SourceIterator.java
import java.io.IOException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import javax.annotation.Nonnull;
import static org.anarres.cpp.Token.EOF;

     *		throws a LexerException or IOException
     */
    @Override
    public boolean hasNext() {
        advance();
        return tok.getType() != EOF;
    }

    /**
     * Returns the next token from the enclosed Source.
     *
     * The EOF token is never returned by the iterator.
     * @throws IllegalStateException if the Source
     *		throws a LexerException or IOException
     */
    @Override
    public Token next() {
        if (!hasNext())
            throw new NoSuchElementException();
        Token t = this.tok;
        this.tok = null;
        return t;
    }

    /**
     * Not supported.
     *
     * @throws UnsupportedOperationException unconditionally.
     */
    @Override
    public void remove() {