Skip to content
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

New frontend #65

Closed
wants to merge 7 commits into from
Closed

New frontend #65

wants to merge 7 commits into from

Conversation

reknih
Copy link
Member

@reknih reknih commented Sep 28, 2023

This commit introduces a new frontend that is more easily maintainable. A macro is the single point of definition for all entry fields and each type has to implement the HayagrivaValue trait for a centralized and composable approach to serialization and deserialization.

This PR prepares Hayagriva for CSL ingestion and processing.

Please do not review the legacy styles.

@reknih reknih requested a review from laurmaedje September 28, 2023 16:14
src/types/strings.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/lang/mod.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/types/strings.rs Outdated Show resolved Hide resolved
src/lang/mod.rs Outdated Show resolved Hide resolved
src/types/time.rs Outdated Show resolved Hide resolved
@reknih reknih requested a review from laurmaedje October 5, 2023 21:22
README.md Outdated Show resolved Hide resolved
Comment on lines +95 to 99
impl From<&[Spanned<Chunk>]> for FormatString {
fn from(chunks: &[Spanned<Chunk>]) -> Self {
Self { value: chunks.into(), short: None }
}
out
}
Copy link
Member

Choose a reason for hiding this comment

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

This impl feels a bit unidiomatic because it converts and implicitly clones. Is it used at all / a lot?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, a lot, for biblatex conversion

src/interop.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@laurmaedje
Copy link
Member

Superseded by #66.

@laurmaedje laurmaedje closed this Oct 31, 2023
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.

2 participants