hypershell_macro/
lib.rs

1use proc_macro::TokenStream;
2use proc_macro2::TokenStream as TokenStream2;
3
4mod expand;
5
6#[proc_macro]
7pub fn hypershell(body: TokenStream) -> TokenStream {
8    let stream =
9        expand::process_extended_token_tree(&mut TokenStream2::from(body).into_iter(), false);
10    expand::expand_and_pipe(expand::ExtendedTokenStream { stream }).into()
11}