Scanner

Generates tokens from data provided by a Reader.

Constructors

this
this(Reader reader)

Construct a Scanner using specified Reader.

Destructor

~this
~this()

Destroy the scanner.

Members

Functions

checkToken
bool checkToken(const TokenID[] ids...)

Check if the next token is one of specified types.

getToken
Token getToken()

Return the next token, removing it from the queue.

peekToken
const(Token) peekToken()

Return the next token, but keep it in the queue.

Meta