yyreset

fun yyreset(reader: Reader)

Resets the scanner to read from a new input stream.

Does not close the old reader.

All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL.

Internal scan buffer is resized down to its initial length, if it has grown.

Parameters

reader

The new input stream.