next


Description:

public string? next ()

Returns the next token from the input.

Tokens are separated by the current delimiter (default: whitespace). When all tokens in the current line are consumed, the next line is read automatically.

Example:

    var scanner = Scanner.fromString ("hello world");
assert (scanner.next () == "hello");
assert (scanner.next () == "world");

Returns:

the next token, or null if no more input.