Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Only represent references between AST structures with IDs #10

@fitzgen

Description

@fitzgen

I'm currently making a first pass over this crate's API to make it id-based similar to walrus (it is currently "physical" in that you have to maintain the index references yourself, similar to parity-wasm).

My first pass will represent refs between AST things as essentially enum ThingRef { Id(id), Name(String), Index(u32) } and then there will be a validation/canonicalization pass that ensures everything is an Id.

However, we would like to only have Ids, and to do that we need to add some validation into the middle of parsing with lalrpop's fallible actions (lalrpop/lalrpop#387).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions