Skip to content

Commit

Permalink
Comprehensive test for interpreter, new global input type info tests,…
Browse files Browse the repository at this point in the history
… support match on all types, restricted global variables and other fixes (#978)

Comprehensive test for interpreter, new global input type info tests, support match on all types, restricted global variables and other fixes
  • Loading branch information
afsalthaj authored Oct 2, 2024
1 parent b1e83ad commit 033576f
Show file tree
Hide file tree
Showing 21 changed files with 2,743 additions and 2,683 deletions.
16 changes: 16 additions & 0 deletions golem-api-grpc/proto/golem/rib/expr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ message ArmPattern {
ConstructorArmPattern constructor = 3;
LiteralArmPattern literal = 4;
TupleConstructorArmPattern tuple_constructor = 5;
ListConstructorArmPattern list_constructor = 6;
RecordConstructorArmPattern record_constructor = 7;
}
}

Expand All @@ -224,6 +226,20 @@ message TupleConstructorArmPattern {
repeated ArmPattern patterns = 1;
}

message ListConstructorArmPattern {
repeated ArmPattern patterns = 1;
}

message RecordConstructorArmPattern {
repeated RecordFieldArmPattern fields = 1;
}

message RecordFieldArmPattern {
string name = 1;
ArmPattern pattern = 2;
}


message LiteralArmPattern {
Expr expr = 1;
}
Expand Down
Loading

0 comments on commit 033576f

Please sign in to comment.