ExpressionFormatter(HashSet string ) - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki
Namespace: FormatterClassLibrary
Description: Initializes an instance of ExpressionFormatter class with predefined unary operators.
Parameters | Description |
---|---|
unarys<HashSet<string>> | all unary operators that will be recognized by formatter |
Examples:
var unarys = new HashSet<string>() { "!", "sin", "log" };
var formatter = new ExpressionFormatter(unarys);
Remarks:
The formatter will only recognize unary operators passed into constructor upon instantiation. The unary operators passed into the constructor must match the unary operators in the expressions Exactly for the formatter to work properly.