Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="valueRangeLexer"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public VisibleCharacterLexerFactory([NotNull] IValueRangeLexerFactory valueRangeLexer)
 {
     if (valueRangeLexer == null)
     {
         throw new ArgumentNullException(nameof(valueRangeLexer));
     }
     this.valueRangeLexer = valueRangeLexer;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="valueRangeLexerFactory"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public CharacterLexerFactory([NotNull] IValueRangeLexerFactory valueRangeLexerFactory)
 {
     if (valueRangeLexerFactory == null)
     {
         throw new ArgumentNullException(nameof(valueRangeLexerFactory));
     }
     this.valueRangeLexerFactory = valueRangeLexerFactory;
 }
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="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;
 }
Exemplo n.º 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;
 }