Class ShuntingYard
java.lang.Object
net.objecthunter.exp4j.shuntingyard.ShuntingYard
Shunting yard implementation to convert infix to reverse polish notation
-
Method Summary
-
Method Details
-
convertToRPN
public static Token[] convertToRPN(boolean simplify, String expression, Map<String, Function> userFunctions, Map<String, Operator> userOperators, Set<String> variableNames, boolean useBuiltInFunctions) Convert a Set of tokens from infix to reverse polish notation- Parameters:
simplify
- tells the method to apply the simplifier to returned expressionexpression
- the expression to convertuserFunctions
- the custom functions useduserOperators
- the custom operators usedvariableNames
- the variable names used in the expressionuseBuiltInFunctions
- tells if builtin functions should be enabled- Returns:
- a
Token
array containing the result
-