chumsky icon indicating copy to clipboard operation
chumsky copied to clipboard

How to combine ariadne::Source with chumsky::Stream

Open hellow554 opened this issue 1 year ago • 1 comments

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?

hellow554 avatar Oct 12 '22 12:10 hellow554