m ot sc lef s. add ( " public " );
104 args=new LinkedList<Argument>();
ty = new T yp e (" S tr ing " ,0);
106 arg = new A rg ument (ty , " _titre " );
args . add ( arg );
108 ty = new Type ( " int " ,0);
arg = new Argument ( ty , " _ nu me ro " );
110 instrs=new LinkedList <Instruction >();
ty = new T yp e (" int " ,2);
112 exp = new Ex press ion( " new int [3][2] ");
DeclarationVariable dc_t=
114 new DeclarationVariable(ty,"t",exp);
instrs . add ( dc_t );
116 exp = new Ex pre ssi on(" t it re = _titre " );
instrs . add ( exp );
118 List <Instruction > liThen=
new LinkedList<Instruction >();
120 Expression condition=
new E xpre ssio n( " _numero < nombre " );
122 exp = new Ex pres sion( " System . out . println (\" Pb \") ");
liThen . add ( exp );
124 exp = new Ex pres sion( " numero = nombre " );
liThen . add ( exp );
126 exp = new Ex pre ssi on(" n om bre = n ombre +1 " );
liThen . add ( exp );
128 BlocInstructions blocThen=
new BlocInstructions(liThen);
130 List <Instruction > liElse=
new LinkedList<Instruction >();
132 exp = new Ex pr essio n(" numero = _numero " );
liElse . add ( exp );
134 exp = new Ex pre ssi on(" n om bre = n umero +1 " );
liElse . add ( exp );
136 BlocInstructions blocElse=
new BlocInstructions(liElse);
138 IfInstruction ifinst=
new I fInst ruc ti on( condition ,
140 blocThen,
blocElse);
142 instrs . add ( ifinst );
DeclarationMethode dm_document2=
144 new DeclarationMethode(motsclefs,
null ,
5