예제 #1
0
 public AbsynFor(AbsynAssignment init, Expression condition, AbsynAssignment iteration, List <AbsynStatement> body)
 {
     this.Initialization = init;
     this.Condition      = condition;
     this.Iteration      = iteration;
     this.Body           = body;
 }
예제 #2
0
		public void VisitAssignment(AbsynAssignment a)
		{
			writer.Indent();
			a.Dst.Accept(this);
			writer.Write(" = ");
			a.Src.Accept(this);
			writer.Terminate(";");
		}
예제 #3
0
 public AbsynAssignment EmitAssign(Expression dst, Expression src)
 {
     var ass = new AbsynAssignment(dst, src);
     stms.Add(ass);
     return ass;
 }
예제 #4
0
 public void VisitAssignment(AbsynAssignment ass)
 {
     stms.Add(ass);
 }