示例#1
0
	private JsonReader(TextReader reader, bool owned) {
		if (reader == null) {
			throw new ArgumentNullException("reader");
		}
		parserInString = false;
		parserReturn = false;

		readStarted = false;
		automationStack = new Stack<int>();
		automationStack.Push((int)ParserToken.End);
		automationStack.Push((int)ParserToken.Text);

		lexer = new Lexer(reader);

		EndOfInput = false;
		EndOfJson = false;

		SkipNonMembers = true;

		this.reader = reader;
		readerIsOwned = owned;

		TypeHinting = false;
		HintTypeName = "__type__";
		HintValueName = "__value__";
	}
示例#2
0
 private JsonReader(TextReader reader, bool owned)
 {
     if (reader == null)
     {
         throw new ArgumentNullException("reader");
     }
     this.parser_in_string = false;
     this.parser_return = false;
     this.read_started = false;
     this.automaton_stack = new Stack<int>();
     this.automaton_stack.Push(65553);
     this.automaton_stack.Push(65543);
     this.lexer = new Lexer(reader);
     this.end_of_input = false;
     this.end_of_json = false;
     this.reader = reader;
     this.reader_is_owned = owned;
 }
示例#3
0
        private JsonReader(TextReader reader, bool owned)
        {
            if (reader == null)
                throw new ArgumentNullException ("reader");

            parser_in_string = false;
            parser_return = false;

            read_started = false;
            automaton_stack = new Stack<int> ();
            automaton_stack.Push ((int) ParserToken.End);
            automaton_stack.Push ((int) ParserToken.Text);

            lexer = new Lexer (reader);

            end_of_input = false;
            end_of_json  = false;

            this.reader = reader;
            reader_is_owned = owned;
        }
示例#4
0
文件: Lexer.cs 项目: K07H/The-Forest
 static Lexer()
 {
     Lexer.PopulateFsmTables();
 }