예제 #1
0
        /// <summary>
        ///
        /// </summary>
        public LanguageList()
        {
            mLanguages = new ArrayList();

            string[] files = Directory.GetFiles(".", "*.syn");
            foreach (string file in files)
            {
                //try
                //{
                SyntaxLoader l = new SyntaxLoader();
                mLanguages.Add(l.Load(file));
                //}
                //catch(System.Exception x)
                //{
                //	Console.WriteLine (x.Message);
                //}
            }
        }
예제 #2
0
		/// <summary>
		/// 
		/// </summary>
		public LanguageList()
		{
			mLanguages=new ArrayList ();
			
			string[] files=Directory.GetFiles(".","*.syn");
			foreach (string file in files)
			{
				//try
				//{
					SyntaxLoader l=new SyntaxLoader ();
					mLanguages.Add (l.Load (file));
				//}
				//catch(System.Exception x)
				//{
				//	Console.WriteLine (x.Message);
				//}
			}

		}
예제 #3
0
        public static Language FromSyntaxFile(string filename)
        {
            SyntaxLoader sl = new SyntaxLoader();

            return(sl.Load(filename));
        }