Interface IParser
The interface contains functionalities to process an expression string.
Assembly: Albatross.Expression.dll
Syntax
Methods
BuildStack(Queue<IToken>)
Declaration
Stack<IToken> BuildStack(Queue<IToken> queue)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Queue<IToken> |
queue |
|
Returns
Type |
Description |
System.Collections.Generic.Stack<IToken> |
|
CreateTree(Stack<IToken>)
Declaration
IToken CreateTree(Stack<IToken> postfix)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Stack<IToken> |
postfix |
|
Returns
Eval(IToken, Func<String, Object>)
Declaration
object Eval(IToken token, Func<string, object> context)
Parameters
Type |
Name |
Description |
IToken |
token |
|
System.Func<System.String, System.Object> |
context |
|
Returns
Type |
Description |
System.Object |
|
IsValidExpression(String)
Declaration
bool IsValidExpression(string expression)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Returns
Type |
Description |
System.Boolean |
|
StringLiteralToken()
Declaration
IStringLiteralToken StringLiteralToken()
Returns
Tokenize(String)
Declaration
Queue<IToken> Tokenize(string expression)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Returns
Type |
Description |
System.Collections.Generic.Queue<IToken> |
|
VariableToken()
Declaration
Returns
Extension Methods