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); }
void ButtonOKClick(object sender, EventArgs e) { String variable = textBoxVariable.Text; AssignStatement asstm = new AssignStatement(); asstm.setVar(variable); asstm.setE(this.expression); stmt = asstm; finished(); }