-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Migrate parsing to ixdtf
crate
#50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good, I just want to have a discussion on the new macro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/// A utility function for parsing a `YearMonth` string | ||
pub(crate) fn parse_year_month(source: &str) -> TemporalResult<IxdtfParseRecord> { | ||
let mut first_calendar: Option<Annotation> = None; | ||
let mut critical_duplicate_calendar = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required? It is assigned but never used after parsing.
This would close #39.
This migrates us from the current parser to the
ixdtf
crate.As mentioned in #48, this also adds a macro
temporal_assertion
for asserting with the goal of being able to use that functionality instead ofexpect
going forward.