enum Lucid::Compiler::Infix::Operator
Defined in:
compiler/node.crEnum Members
-
Invalid =
0
-
NotEqual =
1
-
PatternUnmatch =
2
-
Modulo =
3
-
BitAnd =
4
-
And =
5
-
BinaryMultiply =
6
-
BinaryAdd =
7
-
BinarySubtract =
8
-
Multiply =
9
-
Power =
10
-
Add =
11
-
Subtract =
12
-
InRange =
13
-
OutRange =
14
-
Divide =
15
-
DivFloor =
16
-
LessThan =
17
-
ShiftLeft =
18
-
LessEqual =
19
-
Comparison =
20
-
Equal =
21
-
CaseEqual =
22
-
PatternMatch =
23
-
GreaterThan =
24
-
ShiftRight =
25
-
GreaterEqual =
26
-
Xor =
27
-
BitOr =
28
-
Or =
29
Class Method Summary
Instance Method Summary
- #add?
- #and?
- #binary_add?
- #binary_multiply?
- #binary_subtract?
- #bit_and?
- #bit_or?
- #case_equal?
- #comparison?
- #div_floor?
- #divide?
- #equal?
- #greater_equal?
- #greater_than?
- #in_range?
- #invalid?
- #less_equal?
- #less_than?
- #modulo?
- #multiply?
- #not_equal?
- #or?
- #out_range?
- #pattern_match?
- #pattern_unmatch?
- #power?
- #shift_left?
- #shift_right?
- #subtract?
-
#to_s : String
Returns a
String
representation of this enum member. - #xor?
Class Method Detail
Instance Method Detail
def to_s : String
#
Description copied from struct Enum
Returns a String
representation of this enum member.
In the case of regular enums, this is just the name of the member.
In the case of flag enums, it's the names joined by vertical bars, or "None",
if the value is zero.
If an enum's value doesn't match a member's value, the raw value is returned as a string.
Color::Red.to_s # => "Red"
IOMode::None.to_s # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"
Color.new(10).to_s # => "10"