public GenericFunction(string name, List <Term> arguments) { this.Name = name; var list = new TermList(); for (int n = 0; n < arguments.Count; n++) { list.AddTerm(arguments[n]); if (n == arguments.Count - 1) { break; } list.AddSeparator(GrammarSegment.Comma); } this.Arguments = list; }
private void FinalizeProperty() { if (_property != null) { if (_terms.Length > 1) { _property.Term = _terms; } else { _property.Term = _terms[0]; } } _terms = new TermList(); _property = null; }