We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a quick example, a rewritten alt!()
alt!()
#[macro_export] macro_rules! alt ( ($name:ident<$i:ty,$o:ty>, $($rest:tt)*) => ( fn $name(i:$i) -> IResult<$i,$o>{ alt_parser!(i | $($rest)*) } ); ($($rest:tt)*) => ( | i | { alt_parser!(i | $($rest)*) } ); );
Just one additional line, and now omitting the name allows it to be used in value position.
The text was updated successfully, but these errors were encountered:
Since alt! now returns a block, this is no longer needed
alt!
Sorry, something went wrong.
No branches or pull requests
As a quick example, a rewritten
alt!()
Just one additional line, and now omitting the name allows it to be used in value position.
The text was updated successfully, but these errors were encountered: