Exemplo n.º 1
0
 public RequiredDelimitedListLexerFactory(
     [NotNull] IRepetitionLexerFactory repetitionLexerFactory,
     [NotNull] IConcatenationLexerFactory concatenationLexerFactory,
     [NotNull] IOptionLexerFactory optionLexerFactory,
     [NotNull] ITerminalLexerFactory terminalLexerFactory,
     [NotNull] ILexerFactory <OptionalWhiteSpace> optionalWhiteSpaceLexerFactory)
 {
     if (repetitionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(repetitionLexerFactory));
     }
     if (concatenationLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(concatenationLexerFactory));
     }
     if (optionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(optionLexerFactory));
     }
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     if (optionalWhiteSpaceLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(optionalWhiteSpaceLexerFactory));
     }
     RepetitionLexerFactory         = repetitionLexerFactory;
     ConcatenationLexerFactory      = concatenationLexerFactory;
     OptionLexerFactory             = optionLexerFactory;
     TerminalLexerFactory           = terminalLexerFactory;
     OptionalWhiteSpaceLexerFactory = optionalWhiteSpaceLexerFactory;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="terminalLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public SpaceLexerFactory([NotNull] ITerminalLexerFactory terminalLexerFactory)
 {
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     this.terminalLexerFactory = terminalLexerFactory;
 }
Exemplo n.º 3
0
 protected RuleLexerFactory(
     [NotNull] ITerminalLexerFactory terminalLexerFactory,
     [NotNull] IValueRangeLexerFactory valueRangeLexerFactory,
     [NotNull] IAlternationLexerFactory alternationLexerFactory,
     [NotNull] IConcatenationLexerFactory concatenationLexerFactory,
     [NotNull] IRepetitionLexerFactory repetitionLexerFactory,
     [NotNull] IOptionLexerFactory optionLexerFactory)
 {
     Terminal      = terminalLexerFactory ?? throw new ArgumentNullException(nameof(terminalLexerFactory));
     ValueRange    = valueRangeLexerFactory ?? throw new ArgumentNullException(nameof(valueRangeLexerFactory));
     Alternation   = alternationLexerFactory ?? throw new ArgumentNullException(nameof(alternationLexerFactory));
     Concatenation = concatenationLexerFactory ?? throw new ArgumentNullException(nameof(concatenationLexerFactory));
     Repetition    = repetitionLexerFactory ?? throw new ArgumentNullException(nameof(repetitionLexerFactory));
     Option        = optionLexerFactory ?? throw new ArgumentNullException(nameof(optionLexerFactory));
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="alternativeLexerFactory"></param>
 /// <param name="terminalLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public BitLexerFactory(
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory,
     [NotNull] ITerminalLexerFactory terminalLexerFactory)
 {
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     this.alternativeLexerFactory = alternativeLexerFactory;
     this.terminalLexerFactory    = terminalLexerFactory;
 }
Exemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="digitLexerFactory"></param>
 /// <param name="terminalLexerFactory"></param>
 /// <param name="alternativeLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public HexadecimalDigitLexerFactory(
     [NotNull] ILexerFactory <Digit> digitLexerFactory,
     [NotNull] ITerminalLexerFactory terminalLexerFactory,
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory)
 {
     if (digitLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(digitLexerFactory));
     }
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     this.digitLexerFactory       = digitLexerFactory;
     this.terminalLexerFactory    = terminalLexerFactory;
     this.alternativeLexerFactory = alternativeLexerFactory;
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="valueRangeLexerFactory"></param>
 /// <param name="terminalLexerFactory"></param>
 /// <param name="alternativeLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public ControlCharacterLexerFactory(
     [NotNull] IValueRangeLexerFactory valueRangeLexerFactory,
     [NotNull] ITerminalLexerFactory terminalLexerFactory,
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory)
 {
     if (valueRangeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(valueRangeLexerFactory));
     }
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     this.valueRangeLexerFactory  = valueRangeLexerFactory;
     this.terminalLexerFactory    = terminalLexerFactory;
     this.alternativeLexerFactory = alternativeLexerFactory;
 }
Exemplo n.º 7
0
 public OptionalDelimitedListLexerFactory(
     IOptionLexerFactory optionLexerFactory,
     IConcatenationLexerFactory concatenationLexerFactory,
     IAlternationLexerFactory alternationLexerFactory,
     ITerminalLexerFactory terminalLexerFactory,
     IRepetitionLexerFactory repetitionLexerFactory,
     ILexerFactory <OptionalWhiteSpace> optionalWhiteSpaceLexerFactory)
 {
     if (optionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(optionLexerFactory));
     }
     if (concatenationLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(concatenationLexerFactory));
     }
     if (alternationLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternationLexerFactory));
     }
     if (terminalLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(terminalLexerFactory));
     }
     if (optionalWhiteSpaceLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(optionalWhiteSpaceLexerFactory));
     }
     if (repetitionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(repetitionLexerFactory));
     }
     OptionLexerFactory             = optionLexerFactory;
     ConcatenationLexerFactory      = concatenationLexerFactory;
     AlternationLexerFactory        = alternationLexerFactory;
     TerminalLexerFactory           = terminalLexerFactory;
     OptionalWhiteSpaceLexerFactory = optionalWhiteSpaceLexerFactory;
     RepetitionLexerFactory         = repetitionLexerFactory;
 }