Beispiel #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();
     }
 }
Beispiel #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);
        }
Beispiel #3
0
 public LanguageMeta()
 {
     Name = DEFAULT_NAME;
     Associations = new List<string>();
     Syntax = new Syntax();
 }