Skip to content

Handle match keyword #351

Description

@batmendbar

Noir's frontend takes a match expression and turns it into a simple decision tree: "compare the value to 1, if equal run arm 1, otherwise compare to 2, and so on, else run the default." It hands that tree to Mavros.

The code that turns Noir expressions into its own SSA has a handler for every kind of expression except match. When it sees one it panics with "Expression type not yet supported".

Tests:
match_struct_pattern_field_order
regression_7323

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions