예제 #1
0
		private void button1_Click_1(object sender, System.EventArgs e)
		{
			LeftExpression le = new LeftExpression(30);
			ForwardExpression lf = new ForwardExpression(50);


			RepeatExpression re = new RepeatExpression(4);
			re.AddExpression(le);
			re.AddExpression(lf);
			re.interpret(ctx);
		}
예제 #2
0
		private void button1_Click(object sender, System.EventArgs e)
		{
			int a = Convert.ToInt32(txtVar.Text);
			LeftExpression le = new LeftExpression(a);
			le.interpret(ctx);
			
		}