Class ArithmeticIntrinsics.Operators
A collection of names for arithmetic operations.
Inheritance
Inherited Members
Namespace: Flame.Compiler.Instructions
Assembly: Flame.Compiler.dll
Syntax
public static class Operators
Fields
| Improve this Doc View SourceAdd
The addition binary operator.
Declaration
public const string Add = "add"
Field Value
Type | Description |
---|---|
System.String |
All
An immutable array containing all standard arithmetic intrinsic operator names.
Declaration
public static readonly ImmutableArray<string> All
Field Value
Type | Description |
---|---|
System.Collections.Immutable.ImmutableArray<System.String> |
And
The bitwise and binary operator.
Declaration
public const string And = "and"
Field Value
Type | Description |
---|---|
System.String |
Convert
The unary conversion operator.
Declaration
public const string Convert = "convert"
Field Value
Type | Description |
---|---|
System.String |
Divide
The division binary operator.
Declaration
public const string Divide = "div"
Field Value
Type | Description |
---|---|
System.String |
IsEqualTo
The is-equal-to binary operator.
Declaration
public const string IsEqualTo = "eq"
Field Value
Type | Description |
---|---|
System.String |
IsGreaterThan
The is-greater-than binary operator.
Declaration
public const string IsGreaterThan = "gt"
Field Value
Type | Description |
---|---|
System.String |
IsGreaterThanOrEqualTo
The is-greater-than-or-equal-to binary operator.
Declaration
public const string IsGreaterThanOrEqualTo = "gte"
Field Value
Type | Description |
---|---|
System.String |
IsLessThan
The is-less-than binary operator.
Declaration
public const string IsLessThan = "lt"
Field Value
Type | Description |
---|---|
System.String |
IsLessThanOrEqualTo
The is-less-than-or-equal-to binary operator.
Declaration
public const string IsLessThanOrEqualTo = "lte"
Field Value
Type | Description |
---|---|
System.String |
IsNotEqualTo
The is-not-equal-to binary operator.
Declaration
public const string IsNotEqualTo = "neq"
Field Value
Type | Description |
---|---|
System.String |
LeftShift
The left shift operator.
Declaration
public const string LeftShift = "shl"
Field Value
Type | Description |
---|---|
System.String |
Multiply
The multiplication binary operator.
Declaration
public const string Multiply = "mul"
Field Value
Type | Description |
---|---|
System.String |
Not
The bitwise not unary operator.
Declaration
public const string Not = "not"
Field Value
Type | Description |
---|---|
System.String |
Or
The bitwise or binary operator.
Declaration
public const string Or = "or"
Field Value
Type | Description |
---|---|
System.String |
Remainder
The remainder binary operator.
Declaration
public const string Remainder = "rem"
Field Value
Type | Description |
---|---|
System.String |
RightShift
The right shift operator.
Declaration
public const string RightShift = "shr"
Field Value
Type | Description |
---|---|
System.String |
Subtract
The subtraction binary operator.
Declaration
public const string Subtract = "sub"
Field Value
Type | Description |
---|---|
System.String |
Xor
The bitwise exclusive or binary operator.
Declaration
public const string Xor = "xor"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceIsRelationalOperator(String)
Tells if a particular operator name refers to a standard relational operator.
Declaration
public static bool IsRelationalOperator(string operatorName)
Parameters
Type | Name | Description |
---|---|---|
System.String | operatorName | The operator name to examine. |
Returns
Type | Description |
---|---|
System.Boolean |
|