protected void cmpl_expl(object sender, EventArgs e) { string pcodes = ""; PLC = new PL0Compiler(); Session["PLC"] = PLC; PLC.INPUT = EDITOR.Text; PLC.OUTPUT = OUTPUT; if (PLC.COMPILE()) { pcodes = PLC.PCODES; EXPLBTN.Attributes.Remove("disabled"); } else { EXPLBTN.Attributes.Add("disabled", "disabled"); } EXE.Text = pcodes; if (PLC.EXPLAIN() == 2) { INPUTBTN.Attributes.Remove("disabled"); } }
protected void Page_Load(object sender, EventArgs e) { PLC = (PL0Compiler)Session["PLC"]; }