Пример #1
0
        public ChapelClassifierLexer([NotNull] ICharStream input, ChapelClassifierLexerState state)
        {
            Requires.NotNull(input, nameof(input));

            _input         = input;
            _languageLexer = new ChapelCodeClassifierLexer(input, this);
            //_commentLexer = new ChapelDocCommentClassifierLexer(input, this);

            State = state;
        }
Пример #2
0
        public ChapelClassifierLexer(ICharStream input, ChapelClassifierLexerState state)
        {
            Contract.Requires <ArgumentNullException>(input != null, "input");

            _input         = input;
            _languageLexer = new ChapelCodeClassifierLexer(input, this);
            //_commentLexer = new ChapelDocCommentClassifierLexer(input, this);

            State = state;
        }