Interface Scanner

All Superinterfaces:
Iterator<Token>
All Known Implementing Classes:
ScannerImpl

public interface Scanner extends Iterator<Token>
This interface represents an input stream of Tokens.

The scanner and the parser form together the 'Parse' step in the loading process.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkToken(Token.ID... choices)
    Check if the next token is one of the given types.
    Returns the next token.
    Return the next token, but do not delete it from the stream.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, remove