Created
March 2, 2017 20:51
-
-
Save snark/9a2ccdf0bf0840d4671ece669da24d5a to your computer and use it in GitHub Desktop.
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
named!(pub date_words_full <&[u8], Date>, | |
ws!( | |
alt_complete!( | |
do_parse!( | |
a: month >> | |
b: day_of_month >> | |
c: year_full >> | |
( Date{year: c, month: a, day: b} ) | |
) | | |
do_parse!( | |
a: day_of_month >> | |
b: month >> | |
c: year_full >> | |
( Date{year: c, month: b, day: a} ) | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment