private void AddBoolToken(string boolValue) { if (this.GetNextOnDemand('(')) { this.Match(')'); this.AddToken(FormulaTokensFactory.CreateFunctionFromName(boolValue, FormulaTokenClass.Reference, 0)); } else { this.AddToken(FormulaTokenCode.Bool, bool.Parse(boolValue)); } }
private void AddFunctionToken(string functionValue) { this.isFunctionArgumentsProcessed = true; byte num1 = this.ArgumentList(); this.isFunctionArgumentsProcessed = false; this.GetNextOnDemand(')'); FormulaFunctionInfo info1 = FormulaFunctionsTable.Instance[functionValue]; byte num2 = info1.ArgumentsCount; if (num2 != 0xff) { string text1 = (num2 == 1) ? " argument." : " arguments."; if (num1 != num2) { object[] objArray1 = new object[] { "Function: ", FormulaFunctionsTable.Instance[info1.Code].Name, " expects ", num2, text1 }; this.NotifyError(string.Concat(objArray1)); } } this.AddToken(FormulaTokensFactory.CreateFunctionFromName(functionValue, FormulaTokenClass.Variable, num1)); }