RelOperator enum

Enumeration of relational operators for comparison expressions in Balbismo.

These operators are used for comparing values and return boolean results (represented as integers 0 or 1 in LLVM IR). The operators support both integer and floating-point comparisons with appropriate LLVM instructions.

Example Balbismo code:

if (x == y && a < b || c >= d) {  // Uses eq, lt, ge operators
  // ...
}
Inheritance
Available extensions

Values

eq → const RelOperator

Equality operator (==)

ne → const RelOperator

Inequality operator (!=)

lt → const RelOperator

Less than operator (<)

gt → const RelOperator

Greater than operator (>)

le → const RelOperator

Less than or equal operator (<=)

ge → const RelOperator

Greater than or equal operator (>=)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromString(String op) RelOperator
Converts a string operator representation to the corresponding enum value.

Constants

values → const List<RelOperator>
A constant List of the values in this enum, in order of their declaration.