Exemplo n.º 1
0
 public void ReSet()
 {
     JobBegin    = false;
     NameVal     = "";
     CharVal     = "";
     BlankVal    = "";
     FinishVal   = "";
     JobBeginVal = "";
     StringVal.Clear();
     SourceStringVal.Clear();
     CommentVal.Clear();
     Statement       = new StatementObj();
     SourceStatement = new StatementObj();
 }
Exemplo n.º 2
0
 public void SetFinish(string str)
 {
     if (IsDebug)
     {
         LogHelper.Info($"Token finish: {str}");
     }
     FinishVal = str;
     AppendToken(str, str);
     if (!JobBegin)
     {
         if (IsDebug)
         {
             LogHelper.Info($"statement: {Statement.GetStatement()}");
             LogHelper.Info($"source statement: {SourceStatement.GetStatement()}");
         }
         Statements.Add(Statement);
         SourceStatements.Add(SourceStatement);
         Statement       = new StatementObj();
         SourceStatement = new StatementObj();
     }
     else
     {
         string name = NameVal;
         if (name.ToUpper() == "END")
         {
             if (IsDebug)
             {
                 LogHelper.Info($"statement: {Statement.GetStatement()}");
                 LogHelper.Info($"source statement: {SourceStatement.GetStatement()}");
             }
             Statements.Add(Statement);
             SourceStatements.Add(SourceStatement);
             Statement       = new StatementObj();
             SourceStatement = new StatementObj();
             JobBegin        = false;
         }
     }
 }