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