mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Add a ~mod<< operator
This commit is contained in:
1 parent
9260f66dd3
commit
bc702b4c2b
4 files changed
+196
-175
No files matched your search
@@ -455,21 +455,22 @@ func cOpName(x t.ID) string {
|
||||
}
|
||||
|
||||
var cOpNames = [...]string{
|
||||
t.IDEq: " = ",
|
||||
t.IDPlusEq: " += ",
|
||||
t.IDMinusEq: " -= ",
|
||||
t.IDStarEq: " *= ",
|
||||
t.IDSlashEq: " /= ",
|
||||
t.IDShiftLEq: " <<= ",
|
||||
t.IDShiftREq: " >>= ",
|
||||
t.IDAmpEq: " &= ",
|
||||
t.IDPipeEq: " |= ",
|
||||
t.IDHatEq: " ^= ",
|
||||
t.IDPercentEq: " %= ",
|
||||
t.IDTildeModPlusEq: " += ",
|
||||
t.IDTildeModMinusEq: " -= ",
|
||||
t.IDTildeSatPlusEq: noSuchCOperator,
|
||||
t.IDTildeSatMinusEq: noSuchCOperator,
|
||||
t.IDEq: " = ",
|
||||
t.IDPlusEq: " += ",
|
||||
t.IDMinusEq: " -= ",
|
||||
t.IDStarEq: " *= ",
|
||||
t.IDSlashEq: " /= ",
|
||||
t.IDShiftLEq: " <<= ",
|
||||
t.IDShiftREq: " >>= ",
|
||||
t.IDAmpEq: " &= ",
|
||||
t.IDPipeEq: " |= ",
|
||||
t.IDHatEq: " ^= ",
|
||||
t.IDPercentEq: " %= ",
|
||||
t.IDTildeModShiftLEq: " <<= ",
|
||||
t.IDTildeModPlusEq: " += ",
|
||||
t.IDTildeModMinusEq: " -= ",
|
||||
t.IDTildeSatPlusEq: noSuchCOperator,
|
||||
t.IDTildeSatMinusEq: noSuchCOperator,
|
||||
|
||||
t.IDXUnaryPlus: " + ",
|
||||
t.IDXUnaryMinus: " - ",
|
||||
@@ -477,29 +478,30 @@ var cOpNames = [...]string{
|
||||
t.IDXUnaryRef: " & ",
|
||||
t.IDXUnaryDeref: " * ",
|
||||
|
||||
t.IDXBinaryPlus: " + ",
|
||||
t.IDXBinaryMinus: " - ",
|
||||
t.IDXBinaryStar: " * ",
|
||||
t.IDXBinarySlash: " / ",
|
||||
t.IDXBinaryShiftL: " << ",
|
||||
t.IDXBinaryShiftR: " >> ",
|
||||
t.IDXBinaryAmp: " & ",
|
||||
t.IDXBinaryPipe: " | ",
|
||||
t.IDXBinaryHat: " ^ ",
|
||||
t.IDXBinaryPercent: " % ",
|
||||
t.IDXBinaryTildeModPlus: " + ",
|
||||
t.IDXBinaryTildeModMinus: " - ",
|
||||
t.IDXBinaryTildeSatPlus: noSuchCOperator,
|
||||
t.IDXBinaryTildeSatMinus: noSuchCOperator,
|
||||
t.IDXBinaryNotEq: " != ",
|
||||
t.IDXBinaryLessThan: " < ",
|
||||
t.IDXBinaryLessEq: " <= ",
|
||||
t.IDXBinaryEqEq: " == ",
|
||||
t.IDXBinaryGreaterEq: " >= ",
|
||||
t.IDXBinaryGreaterThan: " > ",
|
||||
t.IDXBinaryAnd: " && ",
|
||||
t.IDXBinaryOr: " || ",
|
||||
t.IDXBinaryAs: noSuchCOperator,
|
||||
t.IDXBinaryPlus: " + ",
|
||||
t.IDXBinaryMinus: " - ",
|
||||
t.IDXBinaryStar: " * ",
|
||||
t.IDXBinarySlash: " / ",
|
||||
t.IDXBinaryShiftL: " << ",
|
||||
t.IDXBinaryShiftR: " >> ",
|
||||
t.IDXBinaryAmp: " & ",
|
||||
t.IDXBinaryPipe: " | ",
|
||||
t.IDXBinaryHat: " ^ ",
|
||||
t.IDXBinaryPercent: " % ",
|
||||
t.IDXBinaryTildeModShiftL: " << ",
|
||||
t.IDXBinaryTildeModPlus: " + ",
|
||||
t.IDXBinaryTildeModMinus: " - ",
|
||||
t.IDXBinaryTildeSatPlus: noSuchCOperator,
|
||||
t.IDXBinaryTildeSatMinus: noSuchCOperator,
|
||||
t.IDXBinaryNotEq: " != ",
|
||||
t.IDXBinaryLessThan: " < ",
|
||||
t.IDXBinaryLessEq: " <= ",
|
||||
t.IDXBinaryEqEq: " == ",
|
||||
t.IDXBinaryGreaterEq: " >= ",
|
||||
t.IDXBinaryGreaterThan: " > ",
|
||||
t.IDXBinaryAnd: " && ",
|
||||
t.IDXBinaryOr: " || ",
|
||||
t.IDXBinaryAs: noSuchCOperator,
|
||||
|
||||
t.IDXAssociativePlus: " + ",
|
||||
t.IDXAssociativeStar: " * ",
|
||||
|
||||
Reference in new issue
Block a user