/// <summary>
        /// 
        /// </summary>
        public SyntaxDefinitionList()
        {
            languages = new List<SyntaxDefinition>();

            string[] files = Directory.GetFiles(".", "*.syn");
            foreach (string file in files)
            {
                var loader = new SyntaxDefinitionLoader();
                SyntaxDefinition syntax = loader.Load(file);
                languages.Add(syntax);
            }
        }
Beispiel #2
0
 public static SyntaxDefinition FromSyntaxFile(string filename)
 {
     var sl = new SyntaxDefinitionLoader();
     return sl.Load(filename);
 }