Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="whiteSpaceLexerFactory"></param>
 /// <param name="endOfLineLexerFactory"></param>
 /// <param name="concatenationLexerFactory"></param>
 /// <param name="alternativeLexerFactory"></param>
 /// <param name="repetitionLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public LinearWhiteSpaceLexerFactory(
     [NotNull] ILexerFactory <WhiteSpace> whiteSpaceLexerFactory,
     [NotNull] ILexerFactory <EndOfLine> endOfLineLexerFactory,
     [NotNull] IConcatenationLexerFactory concatenationLexerFactory,
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory,
     [NotNull] IRepetitionLexerFactory repetitionLexerFactory)
 {
     if (whiteSpaceLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(whiteSpaceLexerFactory));
     }
     if (endOfLineLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(endOfLineLexerFactory));
     }
     if (concatenationLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(concatenationLexerFactory));
     }
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     if (repetitionLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(repetitionLexerFactory));
     }
     this.whiteSpaceLexerFactory    = whiteSpaceLexerFactory;
     this.endOfLineLexerFactory     = endOfLineLexerFactory;
     this.alternativeLexerFactory   = alternativeLexerFactory;
     this.repetitionLexerFactory    = repetitionLexerFactory;
     this.concatenationLexerFactory = concatenationLexerFactory;
 }
Пример #2
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;
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="valueRangeLexerFactory"></param>
 /// <param name="alternativeLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public AlphaLexerFactory(
     [NotNull] IValueRangeLexerFactory valueRangeLexerFactory,
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory)
 {
     if (valueRangeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(valueRangeLexerFactory));
     }
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     this.valueRangeLexerFactory  = valueRangeLexerFactory;
     this.alternativeLexerFactory = alternativeLexerFactory;
 }
Пример #4
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;
 }
Пример #5
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;
 }
Пример #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="spaceLexerFactory"></param>
 /// <param name="horizontalTabLexerFactory"></param>
 /// <param name="alternativeLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public WhiteSpaceLexerFactory(
     [NotNull] ILexerFactory <Space> spaceLexerFactory,
     [NotNull] ILexerFactory <HorizontalTab> horizontalTabLexerFactory,
     [NotNull] IAlternativeLexerFactory alternativeLexerFactory)
 {
     if (spaceLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(spaceLexerFactory));
     }
     if (horizontalTabLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(horizontalTabLexerFactory));
     }
     if (alternativeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(alternativeLexerFactory));
     }
     this.spaceLexerFactory         = spaceLexerFactory;
     this.horizontalTabLexerFactory = horizontalTabLexerFactory;
     this.alternativeLexerFactory   = alternativeLexerFactory;
 }