예제 #1
0
        public AntlrClassifierLexer(ICharStream input, AntlrClassifierLexerState state)
        {
            Contract.Requires <ArgumentNullException>(input != null, "input");

            _input        = input;
            _grammarLexer = new AntlrGrammarClassifierLexer(input, this);
            _actionLexer  = new AntlrActionClassifierLexer(input, this);

            SetCurrentState(state);
        }
예제 #2
0
        public AntlrClassifierLexer([NotNull] ICharStream input, AntlrClassifierLexerState state)
        {
            Requires.NotNull(input, nameof(input));

            _input        = input;
            _grammarLexer = new AntlrGrammarClassifierLexer(input, this);
            _actionLexer  = new AntlrActionClassifierLexer(input, this);

            SetCurrentState(state);
        }