Parenthesizer - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki
Namespace: ExpressionsClassLibrary
Implements: IParenthesize
Description: Parenthesizes expressions for parsing. Parenthesizing means wraping EVERY operator and its operands with a pair of parentheses; operators with higher precedence take higher priority. For instance, "5 % ( 6 + 7 ) log - 5" will be parenthesized into "( ( 5 % ( ( 6 + 7 ) log ) ) - 5 )".
Constructors | Usage |
---|---|
Parenthesizer(List<string[]>) | Initializes an instance of Parenthesizer class with injected services |
Methods | Usage |
---|---|
Parenthesize(string) | parenthesizes expressions |