#macro #tokens #split #parts #compound #individual

split_tokens

Split compound tokens in their individual parts

1 unstable release

Uses old Rust 2015

0.1.0 Jul 30, 2016

#10 in #compound

GPL-3.0 license

3KB

Split compound tokens in their individual parts.

Example

#[macro_use]
extern crate split_tokens;

macro_rules! cb{
    ( ( $($args:tt)* ) ( $($out:tt)* ) ) => {
        //...
    }
}

fn main(){
    split_tokens!( (>>+=-=<<) then cb!() );
}

No runtime deps