Пример #1
0
        public KV1TextReader(TextReader textReader, IParsingVisitationListener listener, KVSerializerOptions options)
        {
            Require.NotNull(textReader, nameof(textReader));
            Require.NotNull(listener, nameof(listener));
            Require.NotNull(options, nameof(options));

            this.listener = listener;
            this.options  = options;

            conditionEvaluator = new KVConditionEvaluator(options.Conditions);
            tokenReader        = new KV1TokenReader(textReader, options);
            stateMachine       = new KV1TextReaderStateMachine();
        }