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