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