Skip to content

Commit

Permalink
Make no junk right associative (#3602)
Browse files Browse the repository at this point in the history
The recent changes broke the haskell backend because they changed the
associativity of the no junk axioms. We are hoping that this will
address those issues.
  • Loading branch information
Dwight Guth authored Aug 25, 2023
1 parent daf8ead commit 94625df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ private void genNoJunkAxiom(Sort sort, StringBuilder sb) {
sbTemp.append(" axiom{} ");
boolean hasToken = false;
int numTerms = 0;
sbTemp.append("\\left-assoc{}(\\or{");
sbTemp.append("\\right-assoc{}(\\or{");
convert(sort, sbTemp);
sbTemp.append("} (");
for (Production prod : iterable(mutable(module.productionsForSort()).getOrDefault(sort.head(), Set()).toSeq().sorted(Production.ord()))) {
Expand Down

0 comments on commit 94625df

Please sign in to comment.