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; }
public IntegerLexerFactory( IConcatenationLexerFactory concatenationLexerFactory, IOptionLexerFactory optionLexerFactory, IRepetitionLexerFactory repetitionLexerFactory, ILexerFactory <Sign> signLexerFactory, ILexerFactory <Digit> digitLexerFactory) { if (concatenationLexerFactory == null) { throw new ArgumentNullException(nameof(concatenationLexerFactory)); } if (optionLexerFactory == null) { throw new ArgumentNullException(nameof(optionLexerFactory)); } if (repetitionLexerFactory == null) { throw new ArgumentNullException(nameof(repetitionLexerFactory)); } if (signLexerFactory == null) { throw new ArgumentNullException(nameof(signLexerFactory)); } if (digitLexerFactory == null) { throw new ArgumentNullException(nameof(digitLexerFactory)); } this.concatenationLexerFactory = concatenationLexerFactory; this.optionLexerFactory = optionLexerFactory; this.repetitionLexerFactory = repetitionLexerFactory; this.signLexerFactory = signLexerFactory; this.digitLexerFactory = digitLexerFactory; }
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)); }
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; }