-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47a57ff
commit c38ac95
Showing
7 changed files
with
2,253 additions
and
216 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
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,101 @@ | ||
module Ops | ||
interface _Add[Rhs, Ouptut] | ||
def +: (Rhs other) -> Output | ||
end | ||
|
||
interface _Sub[Rhs, Ouptut] | ||
def -: (Rhs other) -> Output | ||
end | ||
|
||
interface _Mul[Rhs, Ouptut] | ||
def *: (Rhs other) -> Output | ||
end | ||
|
||
interface _Div[Rhs, Ouptut] | ||
def /: (Rhs other) -> Output | ||
end | ||
|
||
interface _Mod[Rhs, Ouptut] | ||
def %: (Rhs other) -> Output | ||
end | ||
|
||
interface _Pow[Rhs, Ouptut] | ||
def **: (Rhs other) -> Output | ||
end | ||
|
||
interface _Equal[Rhs, Ouptut] | ||
def ==: (Rhs other) -> Output | ||
end | ||
|
||
interface _NotEqual[Rhs, Ouptut] | ||
def !=: (Rhs other) -> Output | ||
end | ||
|
||
interface _Match[Rhs, Output] | ||
def =~: (Rhs rhs) -> Output | ||
end | ||
|
||
interface _NotMatch[Rhs, Output] | ||
def !~: (Rhs rhs) -> Output | ||
end | ||
|
||
interface _CaseEqual[Rhs, Output] | ||
def ===: (Rhs rhs) -> Output | ||
end | ||
|
||
interface _LessThan[Rhs, Ouptut] | ||
def <: (Rhs other) -> Output | ||
end | ||
|
||
interface _GreaterThan[Rhs, Ouptut] | ||
def >: (Rhs other) -> Output | ||
end | ||
|
||
interface _LessEqual[Rhs, Ouptut] | ||
def <=: (Rhs other) -> Output | ||
end | ||
|
||
interface _GreaterEqual[Rhs, Ouptut] | ||
def >=: (Rhs other) -> Output | ||
end | ||
|
||
interface _Spaceship[Rhs, Output] | ||
def <=>: (Rhs other) -> Output | ||
end | ||
|
||
interface _LeftShift[Rhs, Ouptut] | ||
def <<: (Rhs other) -> Output | ||
end | ||
|
||
interface _RightShift[Rhs, Ouptut] | ||
def <<: (Rhs other) -> Output | ||
end | ||
|
||
interface _BitAnd[Rhs, Ouptut] | ||
def &: (Rhs other) -> Output | ||
end | ||
|
||
interface _BitOR[Rhs, Ouptut] | ||
def |: (Rhs other) -> Output | ||
end | ||
|
||
interface _BitXor[Rhs, Ouptut] | ||
def ^: (Rhs other) -> Output | ||
end | ||
|
||
interface _BitNot[Ouptut] | ||
def ~: () -> Output | ||
end | ||
|
||
interface _LogicalNot[Ouptut] | ||
def !: () -> Output | ||
end | ||
|
||
interface _Negate[Ouptut] | ||
def -@: () -> Output | ||
end | ||
|
||
interface _UnaryPlus[Ouptut] | ||
def +@: () -> Output | ||
end | ||
end |
Oops, something went wrong.