chumsky
chumsky copied to clipboard
How to combine ariadne::Source with chumsky::Stream
I try to use a FileCache
to load files from disk and store them for later use. FileCache
gives me a Source
but I see no easy way to use with the Stream
struct (which is used in the parse
function). My current solution is: source.chars().collect::<Vec<_>>()
which is not optimal.
What do you think should be the best way?