Exemple #1
0
        public LexerScanner(TextReader reader, Context context)
        {
            this.lexer   = new LexerMarker(reader);
            this.context = context;

            this.executorCharacter    = context.ExecutorCharacter;
            this.seperatorCharacter   = context.SeparatorCharacter;
            this.listEncapsulation    = context.ListEncapsulation;
            this.vectorEncapsulation  = context.VectorEncapsulation;
            this.setEncapsulation     = context.SetEncapsulation;
            this.scalarEncapsulation  = context.ScalarEncapsulation;
            this.literalEncapsulation = context.LiteralEncapsulation;
        }
Exemple #2
0
        public LexerScanner(TextReader reader, Context context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (reader == null)
            {
                throw new ArgumentNullException("reader");
            }

            this.lexer   = new LexerMarker(reader);
            this.context = context;

            this.executorCharacter    = context.ExecutorCharacter;
            this.seperatorCharacter   = context.SeparatorCharacter;
            this.listEncapsulation    = context.ListEncapsulation;
            this.vectorEncapsulation  = context.VectorEncapsulation;
            this.setEncapsulation     = context.SetEncapsulation;
            this.scalarEncapsulation  = context.ScalarEncapsulation;
            this.literalEncapsulation = context.LiteralEncapsulation;
        }