Skip to content

PermissionExpressionParser.ShuntingYard method

Converts tokens to Reverse Polish Notation using the shunting-yard algorithm.

public static IEnumerable<string> ShuntingYard(IEnumerable<string> tokens)
parameter description
tokens The tokens produced by Tokenize.

Return Value

Tokens in Reverse Polish Notation.

Exceptions

exception condition
ArgumentNullException tokens is null.
InvalidOperationException The expression contains mismatched parentheses.

See Also