Example #1
0
        private Statement readAS()
        {
            AssignStatement _as = new AssignStatement();

            Console.WriteLine("Input variable name:");
            _as.setVar(Console.ReadLine());
            Console.WriteLine("Input variable value:");
            _as.setE(readExpression());
            return(_as);
        }
Example #2
0
        void ButtonOKClick(object sender, EventArgs e)
        {
            String          variable = textBoxVariable.Text;
            AssignStatement asstm    = new AssignStatement();

            asstm.setVar(variable);
            asstm.setE(this.expression);
            stmt = asstm;
            finished();
        }