edu.cornell.cs.cs4120.xi.lexer
Interface Lexer

All Superinterfaces:
Iterator<Token>

public interface Lexer
extends Iterator<Token>

A lexer (or scanner or tokenizer) for the Xi language.


Method Summary
 Token next()
          Returns the next token in the input.
 void remove()
          This operation is not supported.
 
Methods inherited from interface java.util.Iterator
hasNext
 

Method Detail

next

Token next()
Returns the next token in the input.

Specified by:
next in interface Iterator<Token>
Throws:
NoSuchElementException - if there are no more tokens in the input

remove

void remove()
This operation is not supported.

Specified by:
remove in interface Iterator<Token>
Throws:
UnsupportedOperationException - whenever invoked