Beispiel #1
0
 public Ambito(Ambito anterior, String idAmbito)
 {
     this.Anterior   = anterior;
     this.idAmbito   = idAmbito;
     this.tablaVars  = new TablaVariables();
     this.tablaFuns  = new TablaFunciones();
     this.tablaConst = new TablaConstructores();
 }
Beispiel #2
0
        public void tomarConstructores(TablaConstructores tablaPadre)
        {
            Hashtable auxiliar = tablaPadre.constructores;

            foreach (DictionaryEntry data in auxiliar)
            {
                if (data.Value is Constructor)
                {
                    Constructor  cons = (Constructor)data.Value;
                    ClaveFuncion c    = (ClaveFuncion)data.Key;
                    this.tablaConst.AgregaConstrucor(c, cons);
                }
            }
        }
Beispiel #3
0
        public void heredaConstructores(TablaConstructores tabla)
        {
            Hashtable auxiliar = tabla.constructores;

            foreach (DictionaryEntry data in auxiliar)
            {
                if (data.Value is Constructor)
                {
                    Constructor  cons = (Constructor)data.Value;
                    ClaveFuncion c    = (ClaveFuncion)data.Key;
                    c.idFuncion = "padre";
                    c.Tipo      = "vacio";
                    this.tablaConst.AgregaConstrucor(c, cons);
                }
            }
        }