public void LoadChildren() { // load Syntax if (File.Exists(Directory + "\\syntax.js")) { HasSyntax = true; Syntax = JsonHelper.Load<Syntax>(Directory + "\\syntax.js"); } else { Syntax = new Syntax(); } }
private void Merge(Syntax syntax) { foreach(var rule in syntax.Rules) Rules.Add(rule); foreach(var span in syntax.Spans) Spans.Add(span); }
public LanguageMeta() { Name = DEFAULT_NAME; Associations = new List<string>(); Syntax = new Syntax(); }