geneseo.cs.compiler
Interface TokenSeq

All Known Implementing Classes:
MinimLTokenSeq

public interface TokenSeq

The interface that any object that acts as a sequence of tokens (e.g., a lexical analyzer) must present.


Method Summary
 Token nextToken()
          Retrieve the next token from the sequence.
 

Method Detail

nextToken

public Token nextToken()
                throws CompilerException
Retrieve the next token from the sequence.
Returns:
The token.
Throws:
CompilerException - If the input has a lexical error or there is no next token for some other reason.