Пример #1
0
 public IfConstruction(TextUnit father, string fileData, string condition)
     : base(father, fileData)
 {
     Cond      = new Condition(condition);
     ElseUnits = new List <ElseConstruction>();
     Stop      = true;
 }
Пример #2
0
        private bool IsForeachDescendant()
        {
            TextUnit currentFather = Father;

            while (currentFather != null)
            {
                if (currentFather is ForeachConstruction)
                {
                    return(true);
                }
                currentFather = currentFather.Father;
            }
            return(false);
        }
Пример #3
0
 public UserDefinedMacrosConstruction(TextUnit father, UserDefinedMacross macross, string fileData, string macroData)
     : base(father, fileData)
 {
     arguments     = macroData;
     actualMacross = macross;
 }
Пример #4
0
 public IfConstruction(TextUnit father, string fileData)
     : base(father, fileData)
 {
     Stop = true;
 }
Пример #5
0
 protected TextUnit(TextUnit father, string data)
 {
     Father   = father;
     TextData = data;
 }
Пример #6
0
 public void AddUnit(TextUnit tu)
 {
     Units.Add(tu);
 }
Пример #7
0
 protected CompositeConstruction(TextUnit father, string data) : base(father, data)
 {
     Units = new List <TextUnit>();
 }
Пример #8
0
 public IncludeConstruction(TextUnit father, string fileData, string macroData) : base(father, fileData)
 {
     PathToFile = macroData;
 }
Пример #9
0
 public StaticText(TextUnit father, string data) : base(father, data)
 {
 }
Пример #10
0
 public ForeachConstruction(TextUnit father, string fileData, string foreachData)
     : base(father, fileData)
 {
     MacroData = foreachData;
 }
Пример #11
0
 public SetMacros(TextUnit father, string fileData, string macroData) : base(father, fileData)
 {
     NewVariable = macroData;
 }
Пример #12
0
 public ParseConstruction(TextUnit father, string fileData, string macroData) : base(father, fileData)
 {
     FilePath = macroData;
 }
Пример #13
0
 public BreakConstruction(TextUnit father, string fileData) : base(father, fileData)
 {
 }