Skip to content

Commit

Permalink
Added types
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Dec 25, 2024
1 parent 08f72e0 commit f084932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/rascalmpl/library/Type.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ public Production choice(Symbol s, set[Production] choices) {
} else {
// TODO: this does not work in interpreter and typechecker crashes on it (both related to the splicing)
//return choice(s, { *(choice(Symbol t, set[Production] b) := ch ? b : {ch}) | ch <- choices });
changed = false;
new_choices = {};
for (ch <- choices) {
bool changed = false;
set[Production] new_choices = {};
for (Production ch <- choices) {
if (choice(Symbol _, set[Production] b) := ch) {
changed = true;
new_choices += b;
Expand Down

0 comments on commit f084932

Please sign in to comment.