C-minor v0.0

OperatorNames Class

Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor

public static class OperatorNames

Constants

Addition "op_Addition"
Assign "op_Assign"
AssignAddition "op_AssignAddition"
AssignBitwiseAnd "op_AssignBitwiseAnd"
AssignBitwiseOr "op_AssignBitwiseOr"
AssignDivision "op_AssignDivision"
AssignExclusiveOr "op_AssignExclusiveOr"
AssignLeftShift "op_AssignLeftShift"
AssignModulus "op_AssignModulus"
AssignMultiply "op_AssignMultiply"
AssignRightShift "op_AssignRightShift"
AssignSubtraction "op_AssignSubtraction"
BitwiseAnd "op_BitwiseAnd"
BitwiseOr "op_BitwiseOr"
Decrement "op_Decrement"
DecrementPostfix "op_DecrementPostfix"
DecrementPrefix "op_DecrementPrefix"
Division "op_Division"
Equality "op_Equality"
ExclusiveOr "op_ExclusiveOr"
False "op_False"
GreaterThan "op_GreaterThan"
GreaterThanOrEqual "op_GreaterThanOrEqual"
Increment "op_Increment"
IncrementPostfix "op_IncrementPostfix"
IncrementPrefix "op_IncrementPrefix"
Inequality "op_Inequality"
LeftShift "op_LeftShift"
LessThan "op_LessThan"
LessThanOrEqual "op_LessThanOrEqual"
LogicalAnd "op_LogicalAnd"
LogicalNot "op_LogicalNot"
LogicalOr "op_LogicalOr"
Modulus "op_Modulus"
Multiply "op_Multiply"
OnesComplement "op_OnesComplement"
RightShift "op_RightShift"
Subtraction "op_Subtraction"
True "op_True"
UnaryNegation "op_UnaryNegation"
UnaryPlus "op_UnaryPlus"

Methods

BinaryFromName(string)

Gets the binary operator with a given name

NameFromBinary(BinaryOperatorType)

Get the name of a binary operator

NameFromUnary(UnaryOperatorType)

Gets the name of a unary operator

NameToSymbol(string)

Given the name of an operator, returns is symbol

RequiresLValue(BinaryOperatorType)
RequiresLValue(UnaryOperatorType)
UnaryFromName(string)

Gets a unary operator from its name