public class ShuntingYard
extends java.lang.Object
Constructor and Description |
---|
ShuntingYard() |
Modifier and Type | Method and Description |
---|---|
static Token[] |
convertToRPN(java.lang.String expression,
java.util.Map<java.lang.String,Function> userFunctions,
java.util.Map<java.lang.String,Operator> userOperators,
java.util.Set<java.lang.String> variableNames)
Convert a Set of tokens from infix to reverse polish notation
|
public static Token[] convertToRPN(java.lang.String expression, java.util.Map<java.lang.String,Function> userFunctions, java.util.Map<java.lang.String,Operator> userOperators, java.util.Set<java.lang.String> variableNames)
expression
- the expression to convertuserFunctions
- the custom functions useduserOperators
- the custom operators usedvariableNames
- the variable names used in the expressionToken
array containing the resultJHepSim. A part of HSTOOLS. version-1.2