public object VisitClassDeclBasicAST(ClassDeclBasicAST v,object arg) { if ((identificadores.retrieve(v.ident.ident.value)==null)&&(tipos.retrieve(v.ident.ident.value)==null) &&(arreglos.retrieve(v.ident.ident.value)==null)){ identificadores.enter(v.ident.ident.value,"",v); } else{ errores_contextuales+="Error Contextual: El identificador \""+v.ident.ident.value+"\" ya ha sido utilizado.\n"; } return null; }
public object VisitClassDeclBasicAST(ClassDeclBasicAST v,object arg) { int numaux = ((int)arg); printtab(numaux); resultado = resultado +"\n"+(v.GetType()); if (v.ident != null) v.ident.visit(this,numaux+1); else{ printtab(numaux+1); resultado = resultado +"\n"+("NULL"); } return null; }