Last active
December 21, 2016 21:43
-
-
Save danielbodart/5107a830b772ef1e872c7dbe8daf7c69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #[macro_export] | |
| macro_rules! optional ( | |
| ($i:expr, $submac:ident!( $($args:tt)* )) => ( | |
| { | |
| opt!($i, complete!($i, $submac!($i, $($args)*))) | |
| } | |
| ); | |
| ($i:expr, $f:expr) => ( | |
| optional!($i, call!($f)); | |
| ); | |
| ); | |
| error: expected ident, found i | |
| --> src/parser.rs:23:26 | |
| | | |
| 23 | opt!($i, complete!($i, $submac!($i, $($args)*))) | |
| | ^^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment