Ejemplo n.º 1
0
        public AlloyClassifierLexer([NotNull] ICharStream input, AlloyClassifierLexerState state)
        {
            Requires.NotNull(input, nameof(input));

            _input         = input;
            _languageLexer = new AlloyColorizerLexer(input, this);

            _mode      = state.Mode;
            _inComment = state.InComment;
        }
Ejemplo n.º 2
0
        public AlloyClassifierLexer(ICharStream input, AlloyClassifierLexerState state)
        {
            Contract.Requires <ArgumentNullException>(input != null, "input");

            _input         = input;
            _languageLexer = new AlloyColorizerLexer(input, this);

            _mode      = state.Mode;
            _inComment = state.InComment;
        }