コード例 #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
        public static Language FromSyntaxFile(string filename)
        {
            SyntaxLoader sl = new SyntaxLoader();

            return(sl.Load(filename));
        }