Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     PLC = (PL0Compiler)Session["PLC"];
 }