Beispiel #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);
                //}
            }
        }
Beispiel #2
0
 public static Language FromSyntaxXml(string xml)
 {
     SyntaxLoader sl = new SyntaxLoader();
     return sl.LoadXML(xml);
 }
Beispiel #3
0
 public static Language FromSyntaxFile(string filename)
 {
     SyntaxLoader sl = new SyntaxLoader();
     return sl.Load(filename);
 }