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