enum

Lucid::Compiler::Infix::Operator

Inherits Enum < Comparable < Value < Object

Constants

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 methods

from(kind : Token::Kind)
Source

Instance methods

add?

Returns true if this enum value equals Add

Source
and?

Returns true if this enum value equals And

Source
binary_add?

Returns true if this enum value equals BinaryAdd

Source
binary_multiply?

Returns true if this enum value equals BinaryMultiply

Source
binary_subtract?

Returns true if this enum value equals BinarySubtract

Source
bit_and?

Returns true if this enum value equals BitAnd

Source
bit_or?

Returns true if this enum value equals BitOr

Source
case_equal?

Returns true if this enum value equals CaseEqual

Source
comparison?

Returns true if this enum value equals Comparison

Source
div_floor?

Returns true if this enum value equals DivFloor

Source
divide?

Returns true if this enum value equals Divide

Source
equal?

Returns true if this enum value equals Equal

Source
greater_equal?

Returns true if this enum value equals GreaterEqual

Source
greater_than?

Returns true if this enum value equals GreaterThan

Source
in_range?

Returns true if this enum value equals InRange

Source
invalid?

Returns true if this enum value equals Invalid

Source
less_equal?

Returns true if this enum value equals LessEqual

Source
less_than?

Returns true if this enum value equals LessThan

Source
modulo?

Returns true if this enum value equals Modulo

Source
multiply?

Returns true if this enum value equals Multiply

Source
not_equal?

Returns true if this enum value equals NotEqual

Source
or?

Returns true if this enum value equals Or

Source
out_range?

Returns true if this enum value equals OutRange

Source
pattern_match?

Returns true if this enum value equals PatternMatch

Source
pattern_unmatch?

Returns true if this enum value equals PatternUnmatch

Source
power?

Returns true if this enum value equals Power

Source
shift_left?

Returns true if this enum value equals ShiftLeft

Source
shift_right?

Returns true if this enum value equals ShiftRight

Source
subtract?

Returns true if this enum value equals Subtract

Source
to_s

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"
Source
xor?

Returns true if this enum value equals Xor

Source