예제 #1
0
        public override void Exc()
        {
            assign.Exc();
            int a = assign.val, n = E.Eval();
            int i = a;

            for (; i < n; i++)
            {
                statments.Exc();
            }
        }
예제 #2
0
 public void Fire()
 {
     if (Phase1())
     {
         MessageBox.Show("The Program is syntactically correct");
         SS(ref statments);
         statments.Exc();
     }
     else
     {
         MessageBox.Show("The Program is not syntactically correct");
     }
 }
예제 #3
0
        public override void Exc()
        {
            int cond = boolean.Eval();

            if (cond != 0)
            {
                if (ifSS != null)
                {
                    ifSS.Exc();
                }
            }
            else
            if (ISelse == true)
            {
                if (elseSS != null)
                {
                    elseSS.Exc();
                }
            }
        }