Hi, by using libsyntax, I got
let stream = source_file_to_stream(...)
for tokentree in stream.trees().
my question is how can I covert tokenStream or TokenTree into AST. Could anyone give some hint? thanks for you help!
I suggest you use the
syn crate, the compiler's parser is not really meant for external consumption