Scanner.currentToken

class Scanner
@property
currentToken
(
)

Return Value

Type: Token

The most recent token from the input stream, or null if no tokens have yet been retrieved.

Examples

ubyte[] fixture = cast(ubyte[])"PUSH 1".representation;
auto scanner = new Scanner(fixture);
assert(scanner.currentToken is null);

Meta