Skip to content

Add TemporalParser and move parsed_intermediates under parsers - #755

Merged
nekevss merged 6 commits into
mainfrom
add-temporal-parser
Nov 2, 2026
Merged

nekevss merged 6 commits into
mainfrom
add-temporal-parser

Conversation

@nekevss

@nekevss nekevss commented Oct 21, 2026

Copy link
Copy Markdown
Member

This PR closes #224.

It creates a TemporalParser that also allows us to support parsing UTF16.

@jedel1043 jedel1043 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I have a very small nitpick, but it's not blocking merging this tbh.

///
/// `ToTemporalInstant` runs no observable operations after parsing, so the
/// result is validated here rather than handed back as an intermediate.
#[must_use = "parsing returns the parsed instant"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these must_use? Result and Option are already marked as must_use, so adding these might be unnecessary

@nekevss
nekevss merged commit acf6a5c into main Nov 2, 2026
9 checks passed
@nekevss
nekevss deleted the add-temporal-parser branch November 2, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrap IxdtfParser in a TemporalParser and ensure parsing invariants in temporal_rs

2 participants