Public Function InfixToPostfixInComingPriority( _ ByVal vToken As Variant _ ) As Variant
InfixToPostfixInComingPriority("SIN") = 6 InfixToPostfixInComingPriority("*") = 3 InfixToPostfixInComingPriority("(") = 7 IsNull(InfixToPostfixInComingPriority("XCOORD")) = True ' #4 IsNull(InfixToPostfixInComingPriority("%")) = True ' #5See also:
InfixToPostfixInStackPriority Function InfixToPostfix Function InfixToPrefix FunctionNote: This function recognizes the following operators and functions (listed from highest precedence to lowest):
ABS, ASIN, ATAN, COS, LN, SIGN, SIN, SQRT, TAN ^ *, / \, MOD +, - (The functions at the top of this list have the highest precedence and the open parentheses character has the lowest precedence (and functions/operators on the same line have the same precedence). This function assumes that all other alphanumeric words represent variables or numeric constants.
vToken: String containing a single algebraic operator or function name for which the incoming priority will be returned. Function returns Null if vToken is Null or cannot be fixed up to a String.
Function returns Null if vToken is not one of the recognized operators or function names listed above (as in examples #4 and #5).
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.