Skip to content

Commit

Permalink
Set precedence of TEST keyword to be the same as ->
Browse files Browse the repository at this point in the history
We'll be changing its behavior so that it acts in a similar fashion,
i.e., we'll use it to define a nullary function, so it makes sense for
them to have the same precedence.
  • Loading branch information
d-torrance committed Sep 20, 2024
1 parent 2e00075 commit db6bcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/d/binding.d
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ bumpPrecedence();
export RightArrowW := binaryright("->",arrowop); export RightArrowS := makeKeyword(RightArrowW);
export DoubleArrowS := makeKeyword(binaryright("=>"));
export GreaterGreaterS := makeKeyword(binaryright(">>"));
export TestS := makeKeyword(unaryword("TEST"));
bumpPrecedence();
whenW = token("when"); makeKeyword(whenW);
ofW = token("of"); makeKeyword(ofW);
Expand Down Expand Up @@ -311,7 +312,6 @@ bumpPrecedence();
export elapsedTimeS := special("elapsedTime",unaryop,precSpace,wide);
export elapsedTimingS := special("elapsedTiming",unaryop,precSpace,wide);
export shieldS := special("shield",unaryop,precSpace,wide);
export TestS := special("TEST",unaryop,precSpace,wide);
export throwS := special("throw",nunaryop,precSpace,wide);
export returnS := special("return",nunaryop,precSpace,wide);
export breakS := special("break",nunaryop,precSpace,wide);
Expand Down

0 comments on commit db6bcc4

Please sign in to comment.