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

Refactor BuiltInLabel to avoid duplication #992

Merged

Conversation

ggiraldez
Copy link
Contributor

@ggiraldez ggiraldez commented May 29, 2024

Spin off of #976

Moves the BuiltInLabel enum from the parser generator into the language definition and remove duplication in the kinds template.

Copy link

changeset-bot bot commented May 29, 2024

⚠️ No Changeset found

Latest commit: 0f21724

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ggiraldez ggiraldez mentioned this pull request May 29, 2024
@Xanewok
Copy link
Contributor

Xanewok commented Jun 4, 2024

#991 has finally landed; thanks for splitting the work and waiting on it!

@ggiraldez ggiraldez force-pushed the chore/refactor-built-in-labels branch from 40651fd to 68cb449 Compare June 4, 2024 16:42
@ggiraldez ggiraldez force-pushed the chore/refactor-built-in-labels branch from 68cb449 to 8a15e50 Compare June 4, 2024 16:44
@ggiraldez ggiraldez marked this pull request as ready for review June 4, 2024 16:50
@ggiraldez ggiraldez requested a review from a team as a code owner June 4, 2024 16:50
Copy link
Contributor

@Xanewok Xanewok left a comment

Choose a reason for hiding this comment

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

Thanks! I'd like to bundle the kinds together but other than that, looks good to me 👍

crates/codegen/runtime/cargo/src/runtime/kinds.rs.jinja2 Outdated Show resolved Hide resolved
crates/codegen/runtime/generator/src/model.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Xanewok Xanewok left a comment

Choose a reason for hiding this comment

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

LGTM! Let's merge this once CI is happy (try scripts/bin/infra ci)

@ggiraldez
Copy link
Contributor Author

LGTM! Let's merge this once CI is happy (try scripts/bin/infra ci)

Yes, I usually run that before each push... except when I forget 🤦 Thanks!

@Xanewok Xanewok enabled auto-merge June 5, 2024 18:14
@Xanewok Xanewok added this pull request to the merge queue Jun 5, 2024
Merged via the queue into NomicFoundation:main with commit 33cf0ee Jun 5, 2024
1 check passed
@ggiraldez ggiraldez deleted the chore/refactor-built-in-labels branch June 5, 2024 18:37
OmarTawfik pushed a commit to OmarTawfik-forks/slang that referenced this pull request Aug 4, 2024
…Foundation#1002)

Part of NomicFoundation#638

Follow-up to NomicFoundation#991

Pretty straightforward: instead of visiting the previously built v1
definition structure, we defer to `Language::collect_breaking_changes`
as the definitions overlap - the breaking changes are defined as
versions in which the syntax items may be evaluated differently, which
means that these are exactly the versions that will be referenced for
the conditional syntax item evaluation in the parser/lexer.

Refactor `BuiltInLabel` to avoid duplication (NomicFoundation#992)

Spin off of NomicFoundation#976

Moves the `BuiltInLabel` enum from the parser generator into the
language definition and remove duplication in the `kinds` template.

add wit

generating wit and glue

stub adaptors, wit feature flag

glue macros

remove wit_bindgen

fix wit gen paths

add wit-bindgen

export the kinds

pub export macro for wit

improve export macro

world => slang

fully implement glue

convert query matches

refactor ffi glue macros

refactor wit

variant rather than enum

back to enum
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Aug 5, 2024
…Foundation#1002)

Part of NomicFoundation#638

Follow-up to NomicFoundation#991

Pretty straightforward: instead of visiting the previously built v1
definition structure, we defer to `Language::collect_breaking_changes`
as the definitions overlap - the breaking changes are defined as
versions in which the syntax items may be evaluated differently, which
means that these are exactly the versions that will be referenced for
the conditional syntax item evaluation in the parser/lexer.

Refactor `BuiltInLabel` to avoid duplication (NomicFoundation#992)

Spin off of NomicFoundation#976

Moves the `BuiltInLabel` enum from the parser generator into the
language definition and remove duplication in the `kinds` template.

add wit

generating wit and glue

stub adaptors, wit feature flag

glue macros

remove wit_bindgen

fix wit gen paths

add wit-bindgen

export the kinds

pub export macro for wit

improve export macro

world => slang

fully implement glue

convert query matches

refactor ffi glue macros

refactor wit

variant rather than enum

back to enum
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