Skip to main content

expand_loop

Macro expand_loop 

Source
macro_rules! expand_loop {
    ($engine:ident,$tk:ident,$($case:tt)*) => { ... };
    ($then:expr => $engine:ident,$tk:ident,$($case:tt)*) => { ... };
    ($then:expr => $tk:ident => $first:expr; $engine:ident,$($case:tt)*) => { ... };
    ($tk:ident => $first:expr; $engine:ident,$($case:tt)*) => { ... };
    ($ET:ty; $engine:ident,$tk:ident,$($case:tt)*) => { ... };
    ($ET:ty; $tk:ident => $first:expr; $engine:ident,$($case:tt)*) => { ... };
}
Expand description

Expands tokens until a non-expandable Token is found, the ResolvedToken of which is then matched by the provided $case patterns.