Beispiel #1
0
 public override Exp Analy()
 {
     SubjectExp.SetContext(this.ExpContext);
     SubjectExp = SubjectExp.Analy();
     CreateEachSymbols();
     AnalyCountMethod();
     ItemExp      = new ExpEachItem(this.ExpContext, this.ListSymbol, this.IndexSymbol);
     this.RetType = ZTypeManager.ZVOID;
     return(this);
 }
Beispiel #2
0
        private ExpEachItem AnalyEach()
        {
            this.ExpContext.Stmt.HasEach = true;
            StmtCall callStmt = this.ExpContext.Stmt as StmtCall;
            ExpEach  eachExp  = new ExpEach(this.ExpContext, this.LeftExp);

            callStmt.SetEachExp(eachExp);
            eachExp.Analy();
            ExpEachItem itemExp = eachExp.GetItemExp();

            return(itemExp);
        }