Scanner

Generates tokens from data provided by a Reader.

Constructors

this
this(Reader reader)

Construct a Scanner using specified Reader.

Members

Functions

empty
bool empty()

Return whether there are any more tokens left.

front
const(Token) front()

Return the current token

mark
Mark mark()

Get a mark from the current reader position

name
inout(string) name()

Set file name.

popFront
void popFront()

Advance to the next token

Meta