program ::= declaraciones:d {: RESULT = new Programa(d); :} ; declaraciones ::= declaraciones:dl declaracion:d {: dl.add(d); RESULT = dl; :} | declaracion:d {: RESULT = new Declaraciones(); RESULT.add(d); :} ;