Exemple #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);
 }
Exemple #2
0
 public void Patch(SQF.ClassParser.ConfigField field, bool AutoRemove)
 {
     this.MainField = field;
     la             = new Token();
     la.val         = "";
     Get();
     doRoot();
     if (AutoRemove)
     {
         ApplyRemovedFields();
     }
 }
Exemple #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);
 }
 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();
 }
Exemple #5
0
 public void Patch(SQF.ClassParser.ConfigField field, bool AutoRemove)
 {
     this.MainField = field;
     la = new Token();
     la.val = "";
     Get();
     doRoot();
     if(AutoRemove)
         ApplyRemovedFields();
 }
Exemple #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;
 }
Exemple #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;
 }