External module "Parser/Parser"
Functions
parenthesize
- parenthesize(input: string, openParenChar?: string, closeParenChar?: string): IExpression
-
Parameters
-
input: string
-
Default value openParenChar: string = "("
-
Default value closeParenChar: string = ")"
splitOperators
- splitOperators(input: string, operatorMatcher?: RegExp): IExpression
-
Parameters
-
input: string
-
Default value operatorMatcher: RegExp = /[+-*/]/g
Takes a raw string expression and translates all its parentheses into arrays.