mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Rename "!=" to "<>"; "!" now only shows impurity
This commit is contained in:
1 parent
f8d02cfb16
commit
ef7aa0d980
11 files changed
+82
-83
No files matched your search
+1
-1
@@ -164,7 +164,7 @@ var opStrings = [...]string{
|
||||
t.IDXBinaryTildeModMinus: " ~mod- ",
|
||||
t.IDXBinaryTildeSatPlus: " ~sat+ ",
|
||||
t.IDXBinaryTildeSatMinus: " ~sat- ",
|
||||
t.IDXBinaryNotEq: " != ",
|
||||
t.IDXBinaryNotEq: " <> ",
|
||||
t.IDXBinaryLessThan: " < ",
|
||||
t.IDXBinaryLessEq: " <= ",
|
||||
t.IDXBinaryEqEq: " == ",
|
||||
|
||||
@@ -86,7 +86,7 @@ func TestCheck(tt *testing.T) {
|
||||
while:label p == q,
|
||||
pre true,
|
||||
inv true,
|
||||
post p != q,
|
||||
post p <> q,
|
||||
{
|
||||
// Redundant, but shows the labeled jump syntax.
|
||||
continue:label
|
||||
@@ -191,7 +191,7 @@ func TestConstValues(tt *testing.T) {
|
||||
"i = 10 | 3": 11,
|
||||
"i = 10 ^ 3": 9,
|
||||
|
||||
"b = 10 != 3": 1,
|
||||
"b = 10 <> 3": 1,
|
||||
"b = 10 < 3": 0,
|
||||
"b = 10 <= 3": 0,
|
||||
"b = 10 == 3": 0,
|
||||
|
||||
+3
-5
@@ -659,7 +659,7 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
IDTildeSatPlus: "~sat+",
|
||||
IDTildeSatMinus: "~sat-",
|
||||
|
||||
IDNotEq: "!=",
|
||||
IDNotEq: "<>",
|
||||
IDLessThan: "<",
|
||||
IDLessEq: "<=",
|
||||
IDEqEq: "==",
|
||||
@@ -954,6 +954,7 @@ var squiggles = [256]ID{
|
||||
'}': IDCloseCurly,
|
||||
|
||||
',': IDComma,
|
||||
'!': IDExclam,
|
||||
'?': IDQuestion,
|
||||
':': IDColon,
|
||||
';': IDSemicolon,
|
||||
@@ -975,10 +976,6 @@ var lexers = [256][]suffixLexer{
|
||||
{".", IDDotDot},
|
||||
{"", IDDot},
|
||||
},
|
||||
'!': {
|
||||
{"=", IDNotEq},
|
||||
{"", IDExclam},
|
||||
},
|
||||
'&': {
|
||||
{"=", IDAmpEq},
|
||||
{"", IDAmp},
|
||||
@@ -1020,6 +1017,7 @@ var lexers = [256][]suffixLexer{
|
||||
{"<=", IDShiftLEq},
|
||||
{"<", IDShiftL},
|
||||
{"=", IDLessEq},
|
||||
{">", IDNotEq},
|
||||
{"", IDLessThan},
|
||||
},
|
||||
'>': {
|
||||
|
||||
Reference in new issue
Block a user