Add a ~mod* operator

This commit is contained in:
Nigel Tao committed 2019-11-12 21:30:45 +11:00
1 parent e1091ec182
commit cb7e9e0ce9
5 files changed
+35 -16

No files matched your search

+8 -6
View File
@@ -487,19 +487,16 @@ var cOpNames = [...]string{
t.IDPipeEq: " |= ",
t.IDHatEq: " ^= ",
t.IDPercentEq: " %= ",
t.IDTildeModShiftLEq: " <<= ",
t.IDTildeModPlusEq: " += ",
t.IDTildeModMinusEq: " -= ",
t.IDTildeModStarEq: " *= ",
t.IDTildeModShiftLEq: " <<= ",
t.IDTildeSatPlusEq: noSuchCOperator,
t.IDTildeSatMinusEq: noSuchCOperator,
t.IDEq: " = ",
t.IDEqQuestion: " = ",
t.IDXUnaryPlus: " + ",
t.IDXUnaryMinus: " - ",
t.IDXUnaryNot: " ! ",
t.IDXBinaryPlus: " + ",
t.IDXBinaryMinus: " - ",
t.IDXBinaryStar: " * ",
@@ -510,9 +507,10 @@ var cOpNames = [...]string{
t.IDXBinaryPipe: " | ",
t.IDXBinaryHat: " ^ ",
t.IDXBinaryPercent: " % ",
t.IDXBinaryTildeModShiftL: " << ",
t.IDXBinaryTildeModPlus: " + ",
t.IDXBinaryTildeModMinus: " - ",
t.IDXBinaryTildeModStar: " * ",
t.IDXBinaryTildeModShiftL: " << ",
t.IDXBinaryTildeSatPlus: noSuchCOperator,
t.IDXBinaryTildeSatMinus: noSuchCOperator,
t.IDXBinaryNotEq: " != ",
@@ -532,4 +530,8 @@ var cOpNames = [...]string{
t.IDXAssociativeHat: " ^ ",
t.IDXAssociativeAnd: " && ",
t.IDXAssociativeOr: " || ",
t.IDXUnaryPlus: " + ",
t.IDXUnaryMinus: " - ",
t.IDXUnaryNot: " ! ",
}