예제 #1
0
 public For(Var <TIndex> index, Value <TIndex> init, Value <bool> condition, VarAssign <TIndex> incr)
 {
     this.index     = index;
     indexDeclAss   = new VarDeclareAssign <TIndex>(index, init);
     this.condition = condition;
     this.incr      = incr;
 }
예제 #2
0
        public Var <T> Declare <T>(string name, Value <T> val)
        {
            var var     = new Var <T>(name);
            var declAss = new VarDeclareAssign <T>(var, val);

            Append(declAss);
            return(var);
        }