C-minor v0.0

OperatorNames.UnaryFromName Method

Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Declaring Type: OperatorNames

Gets a unary operator from its name

public static UnaryOperatorType UnaryFromName(string name);

Remarks

Also accepts the binary +/- operators and returns their unary names

Parameters

string name

The operator name

Returns

UnaryOperatorType

The unary operator