enum Lucid::Compiler::Infix::Operator

Defined in:

compiler/node.cr

Enum 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

Class Method Detail

def self.from(kind : Token::Kind) #

[View source]

Instance Method Detail

def add? #

[View source]
def and? #

[View source]
def binary_add? #

[View source]
def binary_multiply? #

[View source]
def binary_subtract? #

[View source]
def bit_and? #

[View source]
def bit_or? #

[View source]
def case_equal? #

[View source]
def comparison? #

[View source]
def div_floor? #

[View source]
def divide? #

[View source]
def equal? #

[View source]
def greater_equal? #

[View source]
def greater_than? #

[View source]
def in_range? #

[View source]
def invalid? #

[View source]
def less_equal? #

[View source]
def less_than? #

[View source]
def modulo? #

[View source]
def multiply? #

[View source]
def not_equal? #

[View source]
def or? #

[View source]
def out_range? #

[View source]
def pattern_match? #

[View source]
def pattern_unmatch? #

[View source]
def power? #

[View source]
def shift_left? #

[View source]
def shift_right? #

[View source]
def subtract? #

[View source]
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"

[View source]
def xor? #

[View source]