internal void AddSeparator(GrammarSegment termSepertor) { if (_items.Count != _separator.Count + 1) { throw new NotSupportedException("Must call AddTerm AddSeparator in that order"); } _separator.Add(termSepertor); }
internal void AddSeparator(GrammarSegment termSepertor) { if (_items.Count != _separator.Count + 1) { return; } _separator.Add(termSepertor); }
StringBlock(GrammarSegment type) { GrammarSegment = type; }
internal void AddSeparator(GrammarSegment termSepertor) { _separator.Add(termSepertor); }
SpecialCharacter(char specialCharacter, GrammarSegment type) : base(specialCharacter) { GrammarSegment = type; }
UnitBlock(GrammarSegment type) { GrammarSegment = type; }
SymbolBlock(GrammarSegment type) { GrammarSegment = type; }