-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR extends and updates the operators of C, C++, and Java. Java and C++ now support the -> operator. (C++ had a bug.) The tests of all languages were updated and the operator pattern for each language is now shorter.
- Loading branch information
1 parent
e63d159
commit 7af8f8b
Showing
9 changed files
with
138 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,61 @@ | ||
+ - ++ -- ! != | ||
< << <= <<= | ||
> >> >= >>= | ||
-> == ^ ~ % | ||
& && | || ? * / | ||
+ - * / % -- ++ | ||
>> << | ||
~ & | ^ | ||
+= -= *= /= %= >>= <<= &= |= ^= | ||
! && || | ||
-> :: | ||
? : | ||
= == != < > <= >= | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["operator", "+"], ["operator", "-"], ["operator", "++"], ["operator", "--"], ["operator", "!"], ["operator", "!="], | ||
["operator", "<"], ["operator", "<<"], ["operator", "<="], ["operator", "<<="], | ||
["operator", ">"], ["operator", ">>"], ["operator", ">="], ["operator", ">>="], | ||
["operator", "->"], ["operator", "=="], ["operator", "^"], ["operator", "~"], ["operator", "%"], | ||
["operator", "&"], ["operator", "&&"], ["operator", "|"], ["operator", "||"], ["operator", "?"], ["operator", "*"], ["operator", "/"] | ||
["operator", "+"], | ||
["operator", "-"], | ||
["operator", "*"], | ||
["operator", "/"], | ||
["operator", "%"], | ||
["operator", "--"], | ||
["operator", "++"], | ||
|
||
["operator", ">>"], | ||
["operator", "<<"], | ||
|
||
["operator", "~"], | ||
["operator", "&"], | ||
["operator", "|"], | ||
["operator", "^"], | ||
|
||
["operator", "+="], | ||
["operator", "-="], | ||
["operator", "*="], | ||
["operator", "/="], | ||
["operator", "%="], | ||
["operator", ">>="], | ||
["operator", "<<="], | ||
["operator", "&="], | ||
["operator", "|="], | ||
["operator", "^="], | ||
|
||
["operator", "!"], | ||
["operator", "&&"], | ||
["operator", "||"], | ||
|
||
["operator", "->"], | ||
["operator", "::"], | ||
|
||
["operator", "?"], | ||
["operator", ":"], | ||
|
||
["operator", "="], | ||
["operator", "=="], | ||
["operator", "!="], | ||
["operator", "<"], | ||
["operator", ">"], | ||
["operator", "<="], | ||
["operator", ">="] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for all operators | ||
Checks for all operators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
+ - * / % -- ++ | ||
>> << | ||
~ & | ^ | ||
+= -= *= /= %= >>= <<= &= |= ^= | ||
! && || | ||
-> :: | ||
? : | ||
= == != < > <= >= | ||
and and_eq bitand bitor not not_eq or or_eq xor xor_eq | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["operator", "+"], | ||
["operator", "-"], | ||
["operator", "*"], | ||
["operator", "/"], | ||
["operator", "%"], | ||
["operator", "--"], | ||
["operator", "++"], | ||
|
||
["operator", ">>"], | ||
["operator", "<<"], | ||
|
||
["operator", "~"], | ||
["operator", "&"], | ||
["operator", "|"], | ||
["operator", "^"], | ||
|
||
["operator", "+="], | ||
["operator", "-="], | ||
["operator", "*="], | ||
["operator", "/="], | ||
["operator", "%="], | ||
["operator", ">>="], | ||
["operator", "<<="], | ||
["operator", "&="], | ||
["operator", "|="], | ||
["operator", "^="], | ||
|
||
["operator", "!"], | ||
["operator", "&&"], | ||
["operator", "||"], | ||
|
||
["operator", "->"], | ||
["operator", "::"], | ||
|
||
["operator", "?"], | ||
["operator", ":"], | ||
|
||
["operator", "="], | ||
["operator", "=="], | ||
["operator", "!="], | ||
["operator", "<"], | ||
["operator", ">"], | ||
["operator", "<="], | ||
["operator", ">="], | ||
|
||
["operator", "and"], | ||
["operator", "and_eq"], | ||
["operator", "bitand"], | ||
["operator", "bitor"], | ||
["operator", "not"], | ||
["operator", "not_eq"], | ||
["operator", "or"], | ||
["operator", "or_eq"], | ||
["operator", "xor"], | ||
["operator", "xor_eq"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for all operators. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters