AbstractSet to the length of the input values (vals) upon instantiation.
An array of tokens productd by tokenize().
The input values to be tokenized. This array
is iterated over in onNextToken to generate tokens.
Calculates the current token's position as the difference between the initial length of the input values and the number of tokens that have already been produced.
Consumes a sequence of values from vals.
Optionalval: TAn object that allows for the consumption of values,
providing methods until and while. These methods determine
when to stop or continue the consumption of the sequence.
AbstractonAbstract method to process the next token.
This method must be implemented by subclasses of Tokenizer.
It defines how each value in vals should be converted into a token.
The next value to process into a token.
Constructor for the
Tokenizerclass.