public class ShuntingYard extends Object
Constructor and Description |
---|
ShuntingYard() |
Modifier and Type | Method and Description |
---|---|
static Token[] |
convertToRPN(String expression,
Map<String,Function> userFunctions,
Map<String,Operator> userOperators,
Set<String> variableNames)
Convert a Set of tokens from infix to reverse polish notation
|
public static Token[] convertToRPN(String expression, Map<String,Function> userFunctions, Map<String,Operator> userOperators, Set<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 resultJas4pp 1.5 © Java Analysis Studio for Particle Physics