parseTo

open fun <C : MutableCollection<in T>> parseTo(source: Source, collection: C): C

Parses a source and adds all tokens into a collection.

Return

The collection with the tokens.

Parameters

source

A source of characters.

collection

The collection to add all tokens into.