1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ExpressionLib
- {
- public interface IContext<T>
- {
-
- int NumParams(string oprtr);
-
- T EvalOperator(string oprtr, List<T> values);
-
- bool IsValue(string c);
- bool IsValue(string c, out T r);
-
- bool IsOperator(string c);
-
- int PriorityOf(string c);
-
- Associativity AssociativityOf(string c);
- }
- public enum Associativity
- {
- Left,
- Right
- }
- }
|