Exemple #1
0
 public void LoadChildren()
 {
     // load Syntax
     if (File.Exists(Directory + "\\syntax.js"))
     {
         HasSyntax = true;
         Syntax = JsonHelper.Load<Syntax>(Directory + "\\syntax.js");
     }
     else
     {
         Syntax = new Syntax();
     }
 }
Exemple #2
0
        private void Merge(Syntax syntax)
        {
            foreach(var rule in syntax.Rules)
                Rules.Add(rule);

            foreach(var span in syntax.Spans)
                Spans.Add(span);
        }
Exemple #3
0
 public LanguageMeta()
 {
     Name = DEFAULT_NAME;
     Associations = new List<string>();
     Syntax = new Syntax();
 }