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