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

Implement HIR builder #64

Open
DaniPopes opened this issue Oct 18, 2024 · 2 comments
Open

Implement HIR builder #64

DaniPopes opened this issue Oct 18, 2024 · 2 comments
Assignees
Labels
A-sema Area: semantic analysis C-enhancement Category: an issue proposing an enhancement or a PR with one E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. P-medium Medium priority

Comments

@DaniPopes
Copy link
Member

Describe the feature

Implement a HIR builder that constructs HIR nodes using a bunch of helper methods.

Example:

pub struct HirBuilder<'hir> { /* ... */ }
impl<'hir> HirBuilder<'hir> {
    pub fn expr(&self, kind: hir::ExprKind<'hir>) -> hir::Expr<'hir> { /* ... */ }
}

An initial goal for this would be to replace the manual HIR node construction when desugaring loops and creating variables' getter functions, adding the necessary methods along the way.

Additional context

No response

@DaniPopes DaniPopes added C-enhancement Category: an issue proposing an enhancement or a PR with one S-needs-triage This issue needs to be labelled P-medium Medium priority E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. A-sema Area: semantic analysis E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. and removed S-needs-triage This issue needs to be labelled E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. labels Oct 18, 2024
@DaniPopes DaniPopes mentioned this issue Oct 21, 2024
68 tasks
@ftupas
Copy link

ftupas commented Nov 11, 2024

Hi there, can i take a crack at this?

@mahmudsudo
Copy link
Contributor

Can I take on this if still available ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sema Area: semantic analysis C-enhancement Category: an issue proposing an enhancement or a PR with one E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

3 participants