Skip to content

Conversation

@ethanuppal
Copy link
Contributor

Rationale

It would be useful to refer to a Label object in source code using bril-rs as a library. This can also be done on the user-level by transforming Code::Label into an appropriate user-defined struct, so I can close this PR if this path is intended.

Changes

  • Changes the Code::Label variant in the representation of a concrete program to instead hold a new Label struct, which contains the same information as the variant. This new struct also implements the same traits and other properties as the other items.
  • Bumps the version to 0.2 to reflect this breaking change.

@ethanuppal ethanuppal changed the title refactor!(bril-rs): Use a standalone struct for a concrete label refactor(bril-rs)!: Use a standalone struct for a concrete label Jan 26, 2025
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.

1 participant