Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
named!(single_token<&[u8], Token>,
alt!(
left_paren |
right_paren |
addition_sign |
subtraction_sign |
multiplication_sign |
division_sign |
operand
)
);
named!(tokens<&[u8], Vec<Token>>,
ws!(many0!(single_token))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.