public LexerScanner(TextReader reader)
        {
            if(reader == null)
                throw new ArgumentNullException("reader");

            this.lexer = new LexerMarker(reader);
            this.library = Service<ILibrary>.Instance;

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

            this.lexer   = new LexerMarker(reader);
            this.library = Service <ILibrary> .Instance;

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