Пример #1
0
        public static void  Main(System.String[] args)
        {
            if (args.Length != 1)
            {
                System.Console.Out.WriteLine("Usage: ProfileParser profile_file");
                System.Environment.Exit(1);
            }

            try
            {
                System.IO.FileInfo     f          = new System.IO.FileInfo(args[0]);
                System.IO.StreamReader in_Renamed = new System.IO.StreamReader(new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).BaseStream, new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).CurrentEncoding);
                char[] cbuf = new char[(int)SupportClass.FileLength(f)];
                in_Renamed.Read(cbuf, 0, (int)SupportClass.FileLength(f));
                System.String xml = System.Convert.ToString(cbuf);

                NuGenProfileParser pp   = new NuGenProfileParser(true);
                RuntimeProfile     spec = pp.parse(xml);
            }
            catch (System.Exception e)
            {
                SupportClass.WriteStackTrace(e, Console.Error);
            }
        }
Пример #2
0
			private void  InitBlock(System.String grammar, NuGenProfileParser enclosingInstance)
			{
				this.grammar = grammar;
				this.enclosingInstance = enclosingInstance;
			}
Пример #3
0
			public AnonymousClassEntityResolver(System.String grammar, NuGenProfileParser enclosingInstance)
			{
				InitBlock(grammar, enclosingInstance);
			}
Пример #4
0
			private void  InitBlock(NuGenProfileParser enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}
Пример #5
0
			public AnonymousClassErrorHandler(NuGenProfileParser enclosingInstance)
			{
				InitBlock(enclosingInstance);
			}
Пример #6
0
		public static void  Main(System.String[] args)
		{
			
			if (args.Length != 1)
			{
				System.Console.Out.WriteLine("Usage: ProfileParser profile_file");
				System.Environment.Exit(1);
			}
			
			try
			{
				System.IO.FileInfo f = new System.IO.FileInfo(args[0]);
				System.IO.StreamReader in_Renamed = new System.IO.StreamReader(new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).BaseStream, new System.IO.StreamReader(f.FullName, System.Text.Encoding.Default).CurrentEncoding);
				char[] cbuf = new char[(int) SupportClass.FileLength(f)];
				in_Renamed.Read(cbuf, 0, (int) SupportClass.FileLength(f));
				System.String xml = System.Convert.ToString(cbuf);
				
				NuGenProfileParser pp = new NuGenProfileParser(true);
				RuntimeProfile spec = pp.parse(xml);
			}
			catch (System.Exception e)
			{
				SupportClass.WriteStackTrace(e, Console.Error);
			}
		}
Пример #7
0
 public AnonymousClassEntityResolver(System.String grammar, NuGenProfileParser enclosingInstance)
 {
     InitBlock(grammar, enclosingInstance);
 }
Пример #8
0
 private void  InitBlock(NuGenProfileParser enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Пример #9
0
 public AnonymousClassErrorHandler(NuGenProfileParser enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
Пример #10
0
 private void  InitBlock(System.String grammar, NuGenProfileParser enclosingInstance)
 {
     this.grammar           = grammar;
     this.enclosingInstance = enclosingInstance;
 }