from Accas import MCSIMP,MCFACT,MCBLOC,MCList,EVAL
from Accas import GEOM,ASSD,MCNUPLET
from Accas import COMMENTAIRE,PARAMETRE, PARAMETRE_EVAL,COMMANDE_COMM
+from Extensions.parametre import ITEM_PARAMETRE
from Formatage import Formatage
def entryPoint():
return self.generJDC(obj)
elif isinstance(obj,MCNUPLET):
return self.generMCNUPLET(obj)
+ elif isinstance(obj,ITEM_PARAMETRE):
+ return self.generITEM_PARAMETRE(obj)
else:
raise "Type d'objet non prévu",obj
else:
return obj.nom + ' = '+ self.generator(obj.valeur) +';\n'
+ def generITEM_PARAMETRE(self,obj):
+ return repr(obj)
+
def generPARAMETRE(self,obj):
"""
Cette méthode convertit un PARAMETRE