Exemplo n.º 1
0
 public SQF.ClassParser.ConfigField Parse()
 {
     this.MainField = new SQF.ClassParser.ConfigField();
     this.MainField.ToClass();
     la     = new Token();
     la.val = "";
     Get();
     doRoot();
     return(this.MainField);
 }
Exemplo n.º 2
0
 public void Patch(SQF.ClassParser.ConfigField field, bool AutoRemove)
 {
     this.MainField = field;
     la             = new Token();
     la.val         = "";
     Get();
     doRoot();
     if (AutoRemove)
     {
         ApplyRemovedFields();
     }
 }
Exemplo n.º 3
0
 public RangeDescription GetRange(string key)
 {
     this.KeyToFind = key;
     this.Range     = new RangeDescription();
     this.MainField = new SQF.ClassParser.ConfigField();
     this.MainField.ToClass();
     la     = new Token();
     la.val = "";
     Get();
     doRoot();
     return(this.Range.IsFilled ? this.Range : null);
 }
Exemplo n.º 4
0
 public void LoadSnap()
 {
     Logger.Trace(string.Format("{0} args: -/-", this.GetTraceInfo()));
     this.Config = AddInManager.Instance.MainFile.AddKey(string.Format("EditingSnap_{0}_WorkingConfig", Counter++));
     this.Config.ToClass();
     using (var stream = this.Textbox.Text.AsMemoryStream())
     {
         SQF.ClassParser.Generated.Parser p = new SQF.ClassParser.Generated.Parser(new SQF.ClassParser.Generated.Scanner(stream));
         p.Patch(this.Config, true);
     }
     this.RegenerateDisplay();
 }
Exemplo n.º 5
0
 public void Patch(SQF.ClassParser.ConfigField field, bool AutoRemove)
 {
     this.MainField = field;
     la = new Token();
     la.val = "";
     Get();
     doRoot();
     if(AutoRemove)
         ApplyRemovedFields();
 }
Exemplo n.º 6
0
 public SQF.ClassParser.ConfigField Parse()
 {
     this.MainField = new SQF.ClassParser.ConfigField();
     this.MainField.ToClass();
     la = new Token();
     la.val = "";
     Get();
     doRoot();
     return this.MainField;
 }
Exemplo n.º 7
0
 public RangeDescription GetRange(string key)
 {
     this.KeyToFind = key;
     this.Range = new RangeDescription();
     this.MainField = new SQF.ClassParser.ConfigField();
     this.MainField.ToClass();
     la = new Token();
     la.val = "";
     Get();
     doRoot();
     return this.Range.IsFilled ? this.Range : null;
 }