public OperatorDefinition(int precedence, bool leftToRight, OperatorKind kind, ExpressionCreatorInfix handler) { this.precedence = precedence; this.leftToRight = leftToRight; this.kind = kind; this.handler = handler; }
public void AddOperatorDefinition(string mnemonic, int precedence, bool leftToRight, OperatorKind kind, ExpressionCreatorInfix handler) { if (precedence > highestLevel) highestLevel = precedence; this.precedence[operatorName(kind, mnemonic)] = new OperatorDefinition(precedence, leftToRight, kind, handler); }