This is very similar to the R6 Class TokenStream, but it has no dependencies

create_stream(named_values)

Arguments

named_values

named vector containing the tokens. Usually the output from lex()