Пример #1
0
		/////////////////////////////////////////////////////////////////////////////

		private void FileRead( string fileName )
		{
			// ******
			string text = File.ReadAllText( fileName );
			ParseStringReader reader = new ParseStringReader( text );

			// ******
			while( !reader.AtEnd ) {
				char ch = reader.Next();

				Console.Write( ch );
			}

			// ******
			Console.Write( "\n\n\n" );
		}
Пример #2
0
		/////////////////////////////////////////////////////////////////////////////

		public JSONParser( JSONItemHandler handler, string text )
		{
			// ******
			this.handler = handler;
			reader = new ParseStringReader( text, "json text" );

			// ******
			ValidationRun = false;
			LastIdentifier = string.Empty;
			LastValue = null;
		}