This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Higher-order macro fold function for pre-parsing comma separated lists | |
/// | |
/// The commas on KEYWORD lines can be changed to parse lists with any | |
/// separator. | |
/// run a macro on a list of lists after splitting the input at commas | |
macro_rules! split_comma { | |
// no defaults | |
{$fun:ident <= $($item:tt)*} => { | |
split_comma![$fun () () () <= $($item)*] |