1 // $ANTLR : "Anasint.g" -> "Anasint.java"$
7 import antlr.TokenBuffer;
8 import antlr.TokenStreamException;
9 import antlr.TokenStreamIOException;
10 import antlr.ANTLRException;
11 import antlr.LLkParser;
13 import antlr.TokenStream;
14 import antlr.RecognitionException;
15 import antlr.NoViableAltException;
16 import antlr.MismatchedTokenException;
17 import antlr.SemanticException;
18 import antlr.ParserSharedInputState;
19 import antlr.collections.impl.BitSet;
20 import antlr.collections.AST;
21 import java.util.Hashtable;
22 import antlr.ASTFactory;
24 import antlr.collections.impl.ASTArray;
26 public class Anasint extends antlr.LLkParser implements AnasintTokenTypes
31 Pila_Ambitos pilaambitos = new Pila_Ambitos();
33 void ambito_abrir_programa(){
34 if(pilaambitos.vacia() == true){
35 Ambito a = new Ambito("programa","PROGRAMA",null,null);
36 pilaambitos.apilar_ambito(a);
40 void ambito_abrir(AST nombre, String tipo){
41 Ambito act = pilaambitos.ambito_actual();
42 String tipoAct = act.getTipo();
43 if(tipo.equals("MODULO") && tipoAct.equals("PROGRAMA")
44 || tipo.equals("CLASE") && tipoAct.equals("MODULO")
45 || tipo.equals("METODO") && tipoAct.equals("CLASE")){
46 Ambito A = new Ambito(nombre.getText(), tipo, null, act);
47 pilaambitos.apilar_ambito(A);
52 if(pilaambitos.vacia() == false){
53 pilaambitos.desapilar_ambito();
56 void ambito_cerrar_programa(){
57 if(pilaambitos.vacia() == false && pilaambitos.ambito_actual().getTipo().equals("PROGRAMA"))
58 pilaambitos.desapilar_ambito();
61 AST crear_declaracion_modulo(AST nombre_modulo, AST definicion_modulo){
62 String m = nombre_modulo.getText();
63 AST M = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(MODULO,"modulo")).add(nombre_modulo).add(definicion_modulo));
64 Simbolo S = new Simbolo(m, M);
65 pilaambitos.ambito_actual().setDeclaracion(S);
69 AST crear_declaracion_clase (AST nombre_clase, AST cualificador_clase, AST definicion_clase){
70 String c = nombre_clase.getText();
71 AST C = (AST)astFactory.make( (new ASTArray(4)).add(astFactory.create(CLASE,"clase")).add(nombre_clase).add(cualificador_clase).add(definicion_clase));
72 Simbolo S = new Simbolo(c,C);
73 pilaambitos.ambito_actual().setDeclaracion(S);
77 AST crear_declaracion_metodo (AST declaracion_metodo, AST cualificador_metodo){
78 AST MT = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(METODO,"metodo")).add(declaracion_metodo).add(cualificador_metodo));
79 String mt = MT.getFirstChild().getFirstChild().getText();
80 Simbolo S = new Simbolo(mt,MT);
81 pilaambitos.ambito_actual().setDeclaracion(S);
85 AST crear_declaracion_atributo (AST nombre_atributo, AST tipo_atributo, AST cualificador_atributo){
86 String a = nombre_atributo.getText();
87 AST A = (AST)astFactory.make( (new ASTArray(4)).add(astFactory.create(ATRIBUTO,"atributo")).add(nombre_atributo).add(tipo_atributo).add(cualificador_atributo));
88 Simbolo S = new Simbolo(a, A);
89 pilaambitos.ambito_actual().setDeclaracion(S);
93 AST crear_declaracion_parametro (AST nombre_parametro, AST tipo_parametro){
94 String p = nombre_parametro.getText();
95 AST P = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(PARAMETRO,"parametro")).add(nombre_parametro).add(tipo_parametro));
96 Simbolo S = new Simbolo(p, P);
97 pilaambitos.ambito_actual().setDeclaracion(S);
103 AST crear_declaracion_variable_local (AST nombre_variable, AST tipo_variable){
104 String v = nombre_variable.getText();
105 AST V = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(VARIABLE_LOCAL,"variable_local")).add(nombre_variable).add(tipo_variable));
106 Simbolo S = new Simbolo(v, V);
107 pilaambitos.ambito_actual().setDeclaracion(S);
111 AST ambito_tratar_acceso_simple (AST ident){
112 String acc = ident.getText();
115 if ((s=pilaambitos.buscar_simbolo(acc)) != null){
116 dec_acc = s.getDeclaracion(); // AST de la declaracion del acceso simple
117 log.writeNoIndent(" ("+dec_acc.getText()+")\n");
120 String men = "ERROR RN: Identificador " +acc+ " no declarado";
121 dec_acc = (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(ERROR,"error")));
122 System.out.println(men); // identificador no declarado
123 log.writeNoIndent(" (error)\n");
125 AST ACC = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(ACCESO_SIMPLE,"acceso_simple")).add(ident).add(dec_acc));
129 AST ambito_tratar_ident_tipo (AST ident){
131 String tipo = ident.getText();
132 men = "ERROR RN: Identificador de tipo "+tipo+" no declarado";
133 Ambito amb = pilaambitos.ambito_actual();
134 while (amb != null && !amb.getTipo().equals("MODULO"))
135 amb = amb.getContenedor();
137 System.out.println(men); // el tipo no es un tipo clase
138 return (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(ERROR,"error")));
140 Simbolo simb = amb.getDeclaracion(tipo);
142 System.out.println(men); // el tipo no es un tipo clase
143 return (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(ERROR,"error"))); //#(#[ERROR,"error"]);
145 AST C = simb.getDeclaracion();
150 public AST arbol_crear(AST e1, AST e2){
152 return (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(CREAR,"crear")).add(e1).add(astFactory.create(ERROR,"error")));
154 return (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(CREAR,"crear")).add(e1).add(e2));
157 public AST arbol_escribir(AST e){
159 return (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(ERROR,"error")));
161 return (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(ESCRIBIR,"escribir")).add(e));
164 //comprueba que existe la clase programa y el metodo inicio en esta
165 public void comprobarPrograma(AST modulo){
166 boolean programa=false;
167 AST clase = modulo.getFirstChild().getNextSibling().getNextSibling().getFirstChild();
168 String nombre = clase.getFirstChild().getText();
170 if(nombre.equals("Programa") && !programa){
172 if(clase.getFirstChild().getNextSibling().getText().equals("inst")){
173 System.out.println("ERROR AS: La clase Programa tiene que ser no instanciable");
175 comprobarInicio(clase);
178 clase = clase.getNextSibling();
181 nombre = clase.getFirstChild().getText();
184 System.out.println("ERROR AS: No se ha definido la clase Programa");
188 public void comprobarInicio(AST Prog){
189 boolean inicio = false;
191 AST modulo = Prog.getFirstChild().getNextSibling().getNextSibling();
193 while(modulo.getType() != METODO && modulo != null){
194 modulo = modulo.getNextSibling();
196 if(modulo != null && !modulo.getFirstChild().getFirstChild().getText().equals("inicio")){
197 System.out.println("ERROR AS: Debe haber un metodo inicio en la clase Programa, y debe ser unico");
198 }if(modulo.getNextSibling() != null){
199 System.out.println("ERROR AS: Debe haber un metodo inicio en la clase Programa, y debe ser unico");
206 protected Anasint(TokenBuffer tokenBuf, int k) {
208 tokenNames = _tokenNames;
209 buildTokenTypeASTClassMap();
210 astFactory = new ASTFactory(getTokenTypeToASTClassMap());
213 public Anasint(TokenBuffer tokenBuf) {
217 protected Anasint(TokenStream lexer, int k) {
219 tokenNames = _tokenNames;
220 buildTokenTypeASTClassMap();
221 astFactory = new ASTFactory(getTokenTypeToASTClassMap());
224 public Anasint(TokenStream lexer) {
228 public Anasint(ParserSharedInputState state) {
230 tokenNames = _tokenNames;
231 buildTokenTypeASTClassMap();
232 astFactory = new ASTFactory(getTokenTypeToASTClassMap());
235 public final void declaracion_modulo(
237 ) throws RecognitionException, TokenStreamException {
240 ASTPair currentAST = new ASTPair();
241 AST declaracion_modulo_AST = null;
245 try { // for error handling
246 if ( inputState.guessing==0 ) {
248 ambito_abrir_programa();
249 log = new logFile(f);
253 n_AST = (AST)returnAST;
254 if ( inputState.guessing==0 ) {
256 ambito_abrir (n_AST,"MODULO");
257 log.write("MODULO: "+n_AST.getText()+"\n");
262 d_AST = (AST)returnAST;
264 tmp1_AST = astFactory.create(LT(1));
265 match(Token.EOF_TYPE);
266 if ( inputState.guessing==0 ) {
267 declaracion_modulo_AST = (AST)currentAST.root;
270 declaracion_modulo_AST=crear_declaracion_modulo(n_AST,d_AST);
271 comprobarPrograma(declaracion_modulo_AST);
272 ambito_cerrar_programa();
276 currentAST.root = declaracion_modulo_AST;
277 currentAST.child = declaracion_modulo_AST!=null &&declaracion_modulo_AST.getFirstChild()!=null ?
278 declaracion_modulo_AST.getFirstChild() : declaracion_modulo_AST;
279 currentAST.advanceChildToEnd();
282 catch (RecognitionException ex) {
283 if (inputState.guessing==0) {
285 recover(ex,_tokenSet_0);
290 returnAST = declaracion_modulo_AST;
293 public final void nombre_modulo() throws RecognitionException, TokenStreamException {
296 ASTPair currentAST = new ASTPair();
297 AST nombre_modulo_AST = null;
299 try { // for error handling
302 tmp3_AST = astFactory.create(LT(1));
303 astFactory.addASTChild(currentAST, tmp3_AST);
305 nombre_modulo_AST = (AST)currentAST.root;
307 catch (RecognitionException ex) {
308 if (inputState.guessing==0) {
310 recover(ex,_tokenSet_1);
315 returnAST = nombre_modulo_AST;
318 public final void definicion_modulo() throws RecognitionException, TokenStreamException {
321 ASTPair currentAST = new ASTPair();
322 AST definicion_modulo_AST = null;
324 try { // for error handling
326 astFactory.addASTChild(currentAST, returnAST);
331 if ((LA(1)==EXPORTACION)) {
333 astFactory.addASTChild(currentAST, returnAST);
336 if ( _cnt10079>=1 ) { break _loop10079; } else {throw new NoViableAltException(LT(1), getFilename());}
347 astFactory.addASTChild(currentAST, returnAST);
356 throw new NoViableAltException(LT(1), getFilename());
360 definicion_modulo_AST = (AST)currentAST.root;
362 catch (RecognitionException ex) {
363 if (inputState.guessing==0) {
365 recover(ex,_tokenSet_0);
370 returnAST = definicion_modulo_AST;
373 public final void importacion() throws RecognitionException, TokenStreamException {
376 ASTPair currentAST = new ASTPair();
377 AST importacion_AST = null;
380 try { // for error handling
386 tmp4_AST = astFactory.create(LT(1));
389 tmp5_AST = astFactory.create(LT(1));
392 l_AST = (AST)returnAST;
401 throw new NoViableAltException(LT(1), getFilename());
405 if ( inputState.guessing==0 ) {
406 importacion_AST = (AST)currentAST.root;
407 importacion_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(IMPORTACION,"importacion")).add(l_AST));
408 currentAST.root = importacion_AST;
409 currentAST.child = importacion_AST!=null &&importacion_AST.getFirstChild()!=null ?
410 importacion_AST.getFirstChild() : importacion_AST;
411 currentAST.advanceChildToEnd();
414 catch (RecognitionException ex) {
415 if (inputState.guessing==0) {
417 recover(ex,_tokenSet_2);
422 returnAST = importacion_AST;
425 public final void exportacion() throws RecognitionException, TokenStreamException {
428 ASTPair currentAST = new ASTPair();
429 AST exportacion_AST = null;
432 try { // for error handling
434 tmp6_AST = astFactory.create(LT(1));
435 astFactory.makeASTRoot(currentAST, tmp6_AST);
438 lista_declaraciones_clases();
439 l_AST = (AST)returnAST;
440 astFactory.addASTChild(currentAST, returnAST);
441 exportacion_AST = (AST)currentAST.root;
443 catch (RecognitionException ex) {
444 if (inputState.guessing==0) {
446 recover(ex,_tokenSet_3);
451 returnAST = exportacion_AST;
454 public final void implementacion() throws RecognitionException, TokenStreamException {
457 ASTPair currentAST = new ASTPair();
458 AST implementacion_AST = null;
461 try { // for error handling
463 tmp8_AST = astFactory.create(LT(1));
464 astFactory.makeASTRoot(currentAST, tmp8_AST);
465 match(IMPLEMENTACION);
467 lista_declaraciones_clases();
468 l_AST = (AST)returnAST;
469 astFactory.addASTChild(currentAST, returnAST);
470 implementacion_AST = (AST)currentAST.root;
472 catch (RecognitionException ex) {
473 if (inputState.guessing==0) {
475 recover(ex,_tokenSet_0);
480 returnAST = implementacion_AST;
483 public final void lista_ident() throws RecognitionException, TokenStreamException {
486 ASTPair currentAST = new ASTPair();
487 AST lista_ident_AST = null;
489 try { // for error handling
490 AST tmp10_AST = null;
491 tmp10_AST = astFactory.create(LT(1));
492 astFactory.addASTChild(currentAST, tmp10_AST);
499 AST tmp12_AST = null;
500 tmp12_AST = astFactory.create(LT(1));
501 astFactory.addASTChild(currentAST, tmp12_AST);
510 lista_ident_AST = (AST)currentAST.root;
512 catch (RecognitionException ex) {
513 if (inputState.guessing==0) {
515 recover(ex,_tokenSet_2);
520 returnAST = lista_ident_AST;
523 public final void lista_declaraciones_clases() throws RecognitionException, TokenStreamException {
526 ASTPair currentAST = new ASTPair();
527 AST lista_declaraciones_clases_AST = null;
529 try { // for error handling
533 if ((LA(1)==INST||LA(1)==CLASE)) {
535 astFactory.addASTChild(currentAST, returnAST);
543 lista_declaraciones_clases_AST = (AST)currentAST.root;
545 catch (RecognitionException ex) {
546 if (inputState.guessing==0) {
548 recover(ex,_tokenSet_3);
553 returnAST = lista_declaraciones_clases_AST;
556 public final void declaracion_clase() throws RecognitionException, TokenStreamException {
559 ASTPair currentAST = new ASTPair();
560 AST declaracion_clase_AST = null;
565 try { // for error handling
566 cualificador_clase();
567 c_AST = (AST)returnAST;
569 n_AST = (AST)returnAST;
570 if ( inputState.guessing==0 ) {
572 ambito_abrir(n_AST,"CLASE");
573 log.write("CLASE: "+n_AST.getText()+"\n");
578 d_AST = (AST)returnAST;
579 if ( inputState.guessing==0 ) {
580 declaracion_clase_AST = (AST)currentAST.root;
584 declaracion_clase_AST = crear_declaracion_clase(n_AST,c_AST,d_AST);
586 currentAST.root = declaracion_clase_AST;
587 currentAST.child = declaracion_clase_AST!=null &&declaracion_clase_AST.getFirstChild()!=null ?
588 declaracion_clase_AST.getFirstChild() : declaracion_clase_AST;
589 currentAST.advanceChildToEnd();
592 catch (RecognitionException ex) {
593 if (inputState.guessing==0) {
595 recover(ex,_tokenSet_4);
600 returnAST = declaracion_clase_AST;
603 public final void cualificador_clase() throws RecognitionException, TokenStreamException {
606 ASTPair currentAST = new ASTPair();
607 AST cualificador_clase_AST = null;
609 try { // for error handling
613 AST tmp13_AST = null;
614 tmp13_AST = astFactory.create(LT(1));
616 if ( inputState.guessing==0 ) {
617 cualificador_clase_AST = (AST)currentAST.root;
618 cualificador_clase_AST = (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(tmp13_AST)));
619 currentAST.root = cualificador_clase_AST;
620 currentAST.child = cualificador_clase_AST!=null &&cualificador_clase_AST.getFirstChild()!=null ?
621 cualificador_clase_AST.getFirstChild() : cualificador_clase_AST;
622 currentAST.advanceChildToEnd();
628 if ( inputState.guessing==0 ) {
629 cualificador_clase_AST = (AST)currentAST.root;
630 cualificador_clase_AST = (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(NO_INST,"no_inst")));
631 currentAST.root = cualificador_clase_AST;
632 currentAST.child = cualificador_clase_AST!=null &&cualificador_clase_AST.getFirstChild()!=null ?
633 cualificador_clase_AST.getFirstChild() : cualificador_clase_AST;
634 currentAST.advanceChildToEnd();
640 throw new NoViableAltException(LT(1), getFilename());
644 catch (RecognitionException ex) {
645 if (inputState.guessing==0) {
647 recover(ex,_tokenSet_5);
652 returnAST = cualificador_clase_AST;
655 public final void nombre_clase() throws RecognitionException, TokenStreamException {
658 ASTPair currentAST = new ASTPair();
659 AST nombre_clase_AST = null;
661 try { // for error handling
663 AST tmp15_AST = null;
664 tmp15_AST = astFactory.create(LT(1));
665 astFactory.addASTChild(currentAST, tmp15_AST);
667 nombre_clase_AST = (AST)currentAST.root;
669 catch (RecognitionException ex) {
670 if (inputState.guessing==0) {
672 recover(ex,_tokenSet_6);
677 returnAST = nombre_clase_AST;
680 public final void definicion_clase() throws RecognitionException, TokenStreamException {
683 ASTPair currentAST = new ASTPair();
684 AST definicion_clase_AST = null;
686 try { // for error handling
687 match(LLAVE_ABIERTA);
688 declaraciones_elemento_clase();
689 astFactory.addASTChild(currentAST, returnAST);
690 match(LLAVE_CERRADA);
691 definicion_clase_AST = (AST)currentAST.root;
693 catch (RecognitionException ex) {
694 if (inputState.guessing==0) {
696 recover(ex,_tokenSet_4);
701 returnAST = definicion_clase_AST;
704 public final void declaraciones_elemento_clase() throws RecognitionException, TokenStreamException {
707 ASTPair currentAST = new ASTPair();
708 AST declaraciones_elemento_clase_AST = null;
710 try { // for error handling
714 if ((_tokenSet_7.member(LA(1)))) {
715 declaracion_elemento_clase();
716 astFactory.addASTChild(currentAST, returnAST);
724 declaraciones_elemento_clase_AST = (AST)currentAST.root;
726 catch (RecognitionException ex) {
727 if (inputState.guessing==0) {
729 recover(ex,_tokenSet_8);
734 returnAST = declaraciones_elemento_clase_AST;
737 public final void declaracion_elemento_clase() throws RecognitionException, TokenStreamException {
740 ASTPair currentAST = new ASTPair();
741 AST declaracion_elemento_clase_AST = null;
748 try { // for error handling
749 cualificador_elemento_clase();
750 c_AST = (AST)returnAST;
752 boolean synPredMatched10101 = false;
753 if (((LA(1)==IDENT))) {
754 int _m10101 = mark();
755 synPredMatched10101 = true;
756 inputState.guessing++;
760 match(PARENTESIS_ABIERTO);
763 catch (RecognitionException pe) {
764 synPredMatched10101 = false;
767 inputState.guessing--;
769 if ( synPredMatched10101 ) {
770 declaracion_metodo();
771 a_AST = (AST)returnAST;
772 if ( inputState.guessing==0 ) {
773 declaracion_elemento_clase_AST = (AST)currentAST.root;
776 declaracion_elemento_clase_AST = crear_declaracion_metodo(a_AST,c_AST);
778 currentAST.root = declaracion_elemento_clase_AST;
779 currentAST.child = declaracion_elemento_clase_AST!=null &&declaracion_elemento_clase_AST.getFirstChild()!=null ?
780 declaracion_elemento_clase_AST.getFirstChild() : declaracion_elemento_clase_AST;
781 currentAST.advanceChildToEnd();
784 else if ((_tokenSet_9.member(LA(1)))) {
786 t_AST = (AST)returnAST;
788 i_AST = astFactory.create(i);
790 AST tmp18_AST = null;
791 tmp18_AST = astFactory.create(LT(1));
793 if ( inputState.guessing==0 ) {
794 declaracion_elemento_clase_AST = (AST)currentAST.root;
796 declaracion_elemento_clase_AST = crear_declaracion_atributo(i_AST,t_AST,c_AST);
797 log.write("ATRIBUTO: "+i_AST.getText()+"\n");
799 currentAST.root = declaracion_elemento_clase_AST;
800 currentAST.child = declaracion_elemento_clase_AST!=null &&declaracion_elemento_clase_AST.getFirstChild()!=null ?
801 declaracion_elemento_clase_AST.getFirstChild() : declaracion_elemento_clase_AST;
802 currentAST.advanceChildToEnd();
806 throw new NoViableAltException(LT(1), getFilename());
811 catch (RecognitionException ex) {
812 if (inputState.guessing==0) {
814 recover(ex,_tokenSet_10);
819 returnAST = declaracion_elemento_clase_AST;
822 public final void cualificador_elemento_clase() throws RecognitionException, TokenStreamException {
825 ASTPair currentAST = new ASTPair();
826 AST cualificador_elemento_clase_AST = null;
828 try { // for error handling
832 AST tmp19_AST = null;
833 tmp19_AST = astFactory.create(LT(1));
835 if ( inputState.guessing==0 ) {
836 cualificador_elemento_clase_AST = (AST)currentAST.root;
837 cualificador_elemento_clase_AST = (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(tmp19_AST)));
838 currentAST.root = cualificador_elemento_clase_AST;
839 currentAST.child = cualificador_elemento_clase_AST!=null &&cualificador_elemento_clase_AST.getFirstChild()!=null ?
840 cualificador_elemento_clase_AST.getFirstChild() : cualificador_elemento_clase_AST;
841 currentAST.advanceChildToEnd();
852 if ( inputState.guessing==0 ) {
853 cualificador_elemento_clase_AST = (AST)currentAST.root;
854 cualificador_elemento_clase_AST = (AST)astFactory.make( (new ASTArray(1)).add(astFactory.create(VISIBLE,"visible")));
855 currentAST.root = cualificador_elemento_clase_AST;
856 currentAST.child = cualificador_elemento_clase_AST!=null &&cualificador_elemento_clase_AST.getFirstChild()!=null ?
857 cualificador_elemento_clase_AST.getFirstChild() : cualificador_elemento_clase_AST;
858 currentAST.advanceChildToEnd();
864 throw new NoViableAltException(LT(1), getFilename());
868 catch (RecognitionException ex) {
869 if (inputState.guessing==0) {
871 recover(ex,_tokenSet_9);
876 returnAST = cualificador_elemento_clase_AST;
879 public final void declaracion_metodo() throws RecognitionException, TokenStreamException {
882 ASTPair currentAST = new ASTPair();
883 AST declaracion_metodo_AST = null;
885 try { // for error handling
887 astFactory.addASTChild(currentAST, returnAST);
889 astFactory.addASTChild(currentAST, returnAST);
890 declaracion_metodo_AST = (AST)currentAST.root;
892 catch (RecognitionException ex) {
893 if (inputState.guessing==0) {
895 recover(ex,_tokenSet_10);
900 returnAST = declaracion_metodo_AST;
903 public final void tipo() throws RecognitionException, TokenStreamException {
906 ASTPair currentAST = new ASTPair();
911 try { // for error handling
918 tipo_predefinido_simple();
919 astFactory.addASTChild(currentAST, returnAST);
920 tipo_AST = (AST)currentAST.root;
925 tipo_predefinido_compuesto();
926 astFactory.addASTChild(currentAST, returnAST);
927 tipo_AST = (AST)currentAST.root;
933 i_AST = astFactory.create(i);
934 astFactory.addASTChild(currentAST, i_AST);
936 if ( inputState.guessing==0 ) {
937 tipo_AST = (AST)currentAST.root;
938 tipo_AST = ambito_tratar_ident_tipo(i_AST);
939 log.write("IDENTIFICADOR TIPO: "+i_AST.getText()+"\n");
941 currentAST.root = tipo_AST;
942 currentAST.child = tipo_AST!=null &&tipo_AST.getFirstChild()!=null ?
943 tipo_AST.getFirstChild() : tipo_AST;
944 currentAST.advanceChildToEnd();
946 tipo_AST = (AST)currentAST.root;
951 throw new NoViableAltException(LT(1), getFilename());
955 catch (RecognitionException ex) {
956 if (inputState.guessing==0) {
958 recover(ex,_tokenSet_11);
963 returnAST = tipo_AST;
966 public final void prototipo_metodo() throws RecognitionException, TokenStreamException {
969 ASTPair currentAST = new ASTPair();
970 AST prototipo_metodo_AST = null;
976 try { // for error handling
978 i_AST = astFactory.create(i);
980 if ( inputState.guessing==0 ) {
982 ambito_abrir(i_AST,"METODO");
983 log.write("METODO: "+i_AST.getText()+"\n");
986 AST tmp20_AST = null;
987 tmp20_AST = astFactory.create(LT(1));
988 match(PARENTESIS_ABIERTO);
989 declaracion_parametros();
990 p_AST = (AST)returnAST;
991 AST tmp21_AST = null;
992 tmp21_AST = astFactory.create(LT(1));
993 match(PARENTESIS_CERRADO);
998 AST tmp22_AST = null;
999 tmp22_AST = astFactory.create(LT(1));
1002 t_AST = (AST)returnAST;
1003 if ( inputState.guessing==0 ) {
1004 prototipo_metodo_AST = (AST)currentAST.root;
1005 prototipo_metodo_AST = (AST)astFactory.make( (new ASTArray(4)).add(astFactory.create(PROTOTIPO,"prototipo")).add(i_AST).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(PARAMETROS,"parametros")).add(p_AST))).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(RESULTADO,"resultado")).add(t_AST))));
1006 currentAST.root = prototipo_metodo_AST;
1007 currentAST.child = prototipo_metodo_AST!=null &&prototipo_metodo_AST.getFirstChild()!=null ?
1008 prototipo_metodo_AST.getFirstChild() : prototipo_metodo_AST;
1009 currentAST.advanceChildToEnd();
1015 if ( inputState.guessing==0 ) {
1016 prototipo_metodo_AST = (AST)currentAST.root;
1017 prototipo_metodo_AST = (AST)astFactory.make( (new ASTArray(4)).add(astFactory.create(PROTOTIPO,"prototipo")).add(i_AST).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(PARAMETROS,"parametros")).add(p_AST))).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(RESULTADO,"resultado")).add(astFactory.create(VACIO,"vacio")))));
1018 currentAST.root = prototipo_metodo_AST;
1019 currentAST.child = prototipo_metodo_AST!=null &&prototipo_metodo_AST.getFirstChild()!=null ?
1020 prototipo_metodo_AST.getFirstChild() : prototipo_metodo_AST;
1021 currentAST.advanceChildToEnd();
1027 throw new NoViableAltException(LT(1), getFilename());
1032 catch (RecognitionException ex) {
1033 if (inputState.guessing==0) {
1035 recover(ex,_tokenSet_6);
1040 returnAST = prototipo_metodo_AST;
1043 public final void definicion_metodo() throws RecognitionException, TokenStreamException {
1046 ASTPair currentAST = new ASTPair();
1047 AST definicion_metodo_AST = null;
1051 try { // for error handling
1052 AST tmp23_AST = null;
1053 tmp23_AST = astFactory.create(LT(1));
1054 match(LLAVE_ABIERTA);
1055 if ( inputState.guessing==0 ) {
1058 declaraciones_variables_locales();
1059 d_AST = (AST)returnAST;
1061 b_AST = (AST)returnAST;
1062 AST tmp24_AST = null;
1063 tmp24_AST = astFactory.create(LT(1));
1064 match(LLAVE_CERRADA);
1065 if ( inputState.guessing==0 ) {
1068 if ( inputState.guessing==0 ) {
1069 definicion_metodo_AST = (AST)currentAST.root;
1070 definicion_metodo_AST= (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(DEFINICION,"definicion")).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(VARIABLES_LOCALES,"variables_locales")).add(d_AST))).add(b_AST));
1071 currentAST.root = definicion_metodo_AST;
1072 currentAST.child = definicion_metodo_AST!=null &&definicion_metodo_AST.getFirstChild()!=null ?
1073 definicion_metodo_AST.getFirstChild() : definicion_metodo_AST;
1074 currentAST.advanceChildToEnd();
1077 catch (RecognitionException ex) {
1078 if (inputState.guessing==0) {
1080 recover(ex,_tokenSet_10);
1085 returnAST = definicion_metodo_AST;
1088 public final void declaracion_parametros() throws RecognitionException, TokenStreamException {
1091 ASTPair currentAST = new ASTPair();
1092 AST declaracion_parametros_AST = null;
1094 try { // for error handling
1103 declaracion_parametro();
1104 astFactory.addASTChild(currentAST, returnAST);
1108 if ((LA(1)==COMA)) {
1110 declaracion_parametro();
1111 astFactory.addASTChild(currentAST, returnAST);
1119 declaracion_parametros_AST = (AST)currentAST.root;
1122 case PARENTESIS_CERRADO:
1124 declaracion_parametros_AST = (AST)currentAST.root;
1129 throw new NoViableAltException(LT(1), getFilename());
1133 catch (RecognitionException ex) {
1134 if (inputState.guessing==0) {
1136 recover(ex,_tokenSet_12);
1141 returnAST = declaracion_parametros_AST;
1144 public final void declaracion_parametro() throws RecognitionException, TokenStreamException {
1147 ASTPair currentAST = new ASTPair();
1148 AST declaracion_parametro_AST = null;
1153 try { // for error handling
1155 t_AST = (AST)returnAST;
1157 i_AST = astFactory.create(i);
1159 if ( inputState.guessing==0 ) {
1160 declaracion_parametro_AST = (AST)currentAST.root;
1161 declaracion_parametro_AST = crear_declaracion_parametro(i_AST,t_AST);
1162 currentAST.root = declaracion_parametro_AST;
1163 currentAST.child = declaracion_parametro_AST!=null &&declaracion_parametro_AST.getFirstChild()!=null ?
1164 declaracion_parametro_AST.getFirstChild() : declaracion_parametro_AST;
1165 currentAST.advanceChildToEnd();
1168 catch (RecognitionException ex) {
1169 if (inputState.guessing==0) {
1171 recover(ex,_tokenSet_13);
1176 returnAST = declaracion_parametro_AST;
1179 public final void declaraciones_variables_locales() throws RecognitionException, TokenStreamException {
1182 ASTPair currentAST = new ASTPair();
1183 AST declaraciones_variables_locales_AST = null;
1185 try { // for error handling
1186 boolean synPredMatched10113 = false;
1187 if (((_tokenSet_9.member(LA(1))))) {
1188 int _m10113 = mark();
1189 synPredMatched10113 = true;
1190 inputState.guessing++;
1193 declaracion_variables_locales();
1198 catch (RecognitionException pe) {
1199 synPredMatched10113 = false;
1202 inputState.guessing--;
1204 if ( synPredMatched10113 ) {
1205 declaracion_variables_locales();
1206 astFactory.addASTChild(currentAST, returnAST);
1207 declaraciones_variables_locales();
1208 astFactory.addASTChild(currentAST, returnAST);
1209 declaraciones_variables_locales_AST = (AST)currentAST.root;
1212 boolean synPredMatched10115 = false;
1213 if (((_tokenSet_9.member(LA(1))))) {
1214 int _m10115 = mark();
1215 synPredMatched10115 = true;
1216 inputState.guessing++;
1219 declaracion_variables_locales();
1222 catch (RecognitionException pe) {
1223 synPredMatched10115 = false;
1226 inputState.guessing--;
1228 if ( synPredMatched10115 ) {
1229 declaracion_variables_locales();
1230 astFactory.addASTChild(currentAST, returnAST);
1231 declaraciones_variables_locales_AST = (AST)currentAST.root;
1233 else if ((_tokenSet_14.member(LA(1)))) {
1234 declaraciones_variables_locales_AST = (AST)currentAST.root;
1237 throw new NoViableAltException(LT(1), getFilename());
1241 catch (RecognitionException ex) {
1242 if (inputState.guessing==0) {
1244 recover(ex,_tokenSet_14);
1249 returnAST = declaraciones_variables_locales_AST;
1252 public final void bloque() throws RecognitionException, TokenStreamException {
1255 ASTPair currentAST = new ASTPair();
1256 AST bloque_AST = null;
1259 try { // for error handling
1261 i_AST = (AST)returnAST;
1262 if ( inputState.guessing==0 ) {
1263 bloque_AST = (AST)currentAST.root;
1264 bloque_AST=(AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(INSTRUCCIONES,"instrucciones")).add(i_AST));
1265 currentAST.root = bloque_AST;
1266 currentAST.child = bloque_AST!=null &&bloque_AST.getFirstChild()!=null ?
1267 bloque_AST.getFirstChild() : bloque_AST;
1268 currentAST.advanceChildToEnd();
1271 catch (RecognitionException ex) {
1272 if (inputState.guessing==0) {
1274 recover(ex,_tokenSet_15);
1279 returnAST = bloque_AST;
1282 public final void declaracion_variables_locales() throws RecognitionException, TokenStreamException {
1285 ASTPair currentAST = new ASTPair();
1286 AST declaracion_variables_locales_AST = null;
1289 try { // for error handling
1291 t_AST = (AST)returnAST;
1292 lista_nombres_variables_locales(t_AST);
1293 astFactory.addASTChild(currentAST, returnAST);
1294 match(PUNTO_Y_COMA);
1295 declaracion_variables_locales_AST = (AST)currentAST.root;
1297 catch (RecognitionException ex) {
1298 if (inputState.guessing==0) {
1300 recover(ex,_tokenSet_16);
1305 returnAST = declaracion_variables_locales_AST;
1308 public final void lista_nombres_variables_locales(
1310 ) throws RecognitionException, TokenStreamException {
1313 ASTPair currentAST = new ASTPair();
1314 AST lista_nombres_variables_locales_AST = null;
1316 try { // for error handling
1317 nombre_variable_local(t);
1318 astFactory.addASTChild(currentAST, returnAST);
1322 if ((LA(1)==COMA)) {
1324 nombre_variable_local(t);
1325 astFactory.addASTChild(currentAST, returnAST);
1333 lista_nombres_variables_locales_AST = (AST)currentAST.root;
1335 catch (RecognitionException ex) {
1336 if (inputState.guessing==0) {
1338 recover(ex,_tokenSet_17);
1343 returnAST = lista_nombres_variables_locales_AST;
1346 public final void nombre_variable_local(
1348 ) throws RecognitionException, TokenStreamException {
1351 ASTPair currentAST = new ASTPair();
1352 AST nombre_variable_local_AST = null;
1356 try { // for error handling
1358 i_AST = astFactory.create(i);
1360 if ( inputState.guessing==0 ) {
1361 nombre_variable_local_AST = (AST)currentAST.root;
1362 nombre_variable_local_AST = crear_declaracion_variable_local(i_AST,t);
1363 currentAST.root = nombre_variable_local_AST;
1364 currentAST.child = nombre_variable_local_AST!=null &&nombre_variable_local_AST.getFirstChild()!=null ?
1365 nombre_variable_local_AST.getFirstChild() : nombre_variable_local_AST;
1366 currentAST.advanceChildToEnd();
1369 catch (RecognitionException ex) {
1370 if (inputState.guessing==0) {
1372 recover(ex,_tokenSet_18);
1377 returnAST = nombre_variable_local_AST;
1380 public final void instrucciones() throws RecognitionException, TokenStreamException {
1383 ASTPair currentAST = new ASTPair();
1384 AST instrucciones_AST = null;
1386 try { // for error handling
1390 if ((_tokenSet_19.member(LA(1)))) {
1392 astFactory.addASTChild(currentAST, returnAST);
1400 instrucciones_AST = (AST)currentAST.root;
1402 catch (RecognitionException ex) {
1403 if (inputState.guessing==0) {
1405 recover(ex,_tokenSet_15);
1410 returnAST = instrucciones_AST;
1413 public final void instruccion() throws RecognitionException, TokenStreamException {
1416 ASTPair currentAST = new ASTPair();
1417 AST instruccion_AST = null;
1421 try { // for error handling
1424 case PARENTESIS_ABIERTO:
1437 instruccion_simple();
1438 i_AST = (AST)returnAST;
1439 AST tmp28_AST = null;
1440 tmp28_AST = astFactory.create(LT(1));
1441 match(PUNTO_Y_COMA);
1442 if ( inputState.guessing==0 ) {
1443 instruccion_AST = (AST)currentAST.root;
1444 instruccion_AST=(AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(INSTRUCCION,"instruccion")).add(i_AST));
1445 currentAST.root = instruccion_AST;
1446 currentAST.child = instruccion_AST!=null &&instruccion_AST.getFirstChild()!=null ?
1447 instruccion_AST.getFirstChild() : instruccion_AST;
1448 currentAST.advanceChildToEnd();
1455 instruccion_compuesta();
1456 j_AST = (AST)returnAST;
1457 if ( inputState.guessing==0 ) {
1458 instruccion_AST = (AST)currentAST.root;
1459 instruccion_AST=(AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(INSTRUCCION,"instruccion")).add(j_AST));
1460 currentAST.root = instruccion_AST;
1461 currentAST.child = instruccion_AST!=null &&instruccion_AST.getFirstChild()!=null ?
1462 instruccion_AST.getFirstChild() : instruccion_AST;
1463 currentAST.advanceChildToEnd();
1469 throw new NoViableAltException(LT(1), getFilename());
1473 catch (RecognitionException ex) {
1474 if (inputState.guessing==0) {
1476 recover(ex,_tokenSet_20);
1481 returnAST = instruccion_AST;
1484 public final void instruccion_simple() throws RecognitionException, TokenStreamException {
1487 ASTPair currentAST = new ASTPair();
1488 AST instruccion_simple_AST = null;
1490 try { // for error handling
1495 astFactory.addASTChild(currentAST, returnAST);
1496 instruccion_simple_AST = (AST)currentAST.root;
1502 astFactory.addASTChild(currentAST, returnAST);
1503 instruccion_simple_AST = (AST)currentAST.root;
1507 boolean synPredMatched10127 = false;
1508 if (((_tokenSet_21.member(LA(1))))) {
1509 int _m10127 = mark();
1510 synPredMatched10127 = true;
1511 inputState.guessing++;
1519 catch (RecognitionException pe) {
1520 synPredMatched10127 = false;
1523 inputState.guessing--;
1525 if ( synPredMatched10127 ) {
1527 astFactory.addASTChild(currentAST, returnAST);
1528 instruccion_simple_AST = (AST)currentAST.root;
1531 boolean synPredMatched10129 = false;
1532 if (((_tokenSet_21.member(LA(1))))) {
1533 int _m10129 = mark();
1534 synPredMatched10129 = true;
1535 inputState.guessing++;
1542 catch (RecognitionException pe) {
1543 synPredMatched10129 = false;
1546 inputState.guessing--;
1548 if ( synPredMatched10129 ) {
1550 astFactory.addASTChild(currentAST, returnAST);
1551 instruccion_simple_AST = (AST)currentAST.root;
1553 else if ((LA(1)==IDENT)) {
1555 astFactory.addASTChild(currentAST, returnAST);
1556 instruccion_simple_AST = (AST)currentAST.root;
1559 throw new NoViableAltException(LT(1), getFilename());
1563 catch (RecognitionException ex) {
1564 if (inputState.guessing==0) {
1566 recover(ex,_tokenSet_17);
1571 returnAST = instruccion_simple_AST;
1574 public final void instruccion_compuesta() throws RecognitionException, TokenStreamException {
1577 ASTPair currentAST = new ASTPair();
1578 AST instruccion_compuesta_AST = null;
1580 try { // for error handling
1585 astFactory.addASTChild(currentAST, returnAST);
1586 instruccion_compuesta_AST = (AST)currentAST.root;
1592 astFactory.addASTChild(currentAST, returnAST);
1593 instruccion_compuesta_AST = (AST)currentAST.root;
1598 throw new NoViableAltException(LT(1), getFilename());
1602 catch (RecognitionException ex) {
1603 if (inputState.guessing==0) {
1605 recover(ex,_tokenSet_20);
1610 returnAST = instruccion_compuesta_AST;
1613 public final void expresion() throws RecognitionException, TokenStreamException {
1616 ASTPair currentAST = new ASTPair();
1617 AST expresion_AST = null;
1619 try { // for error handling
1620 expresion_nivel_1();
1621 astFactory.addASTChild(currentAST, returnAST);
1626 AST tmp29_AST = null;
1627 tmp29_AST = astFactory.create(LT(1));
1628 astFactory.makeASTRoot(currentAST, tmp29_AST);
1630 expresion_nivel_1();
1631 astFactory.addASTChild(currentAST, returnAST);
1639 expresion_AST = (AST)currentAST.root;
1641 catch (RecognitionException ex) {
1642 if (inputState.guessing==0) {
1644 recover(ex,_tokenSet_22);
1649 returnAST = expresion_AST;
1652 public final void crear() throws RecognitionException, TokenStreamException {
1655 ASTPair currentAST = new ASTPair();
1656 AST crear_AST = null;
1660 try { // for error handling
1662 e1_AST = (AST)returnAST;
1663 AST tmp30_AST = null;
1664 tmp30_AST = astFactory.create(LT(1));
1666 AST tmp31_AST = null;
1667 tmp31_AST = astFactory.create(LT(1));
1669 AST tmp32_AST = null;
1670 tmp32_AST = astFactory.create(LT(1));
1671 match(PARENTESIS_ABIERTO);
1673 i_AST = (AST)returnAST;
1674 AST tmp33_AST = null;
1675 tmp33_AST = astFactory.create(LT(1));
1676 match(PARENTESIS_CERRADO);
1677 if ( inputState.guessing==0 ) {
1678 crear_AST = (AST)currentAST.root;
1680 crear_AST = arbol_crear(e1_AST,i_AST);
1682 log.write("IDENTIFICADOR TIPO: "+i_AST.getFirstChild().getNextSibling().getFirstChild().getText()+"\n");
1683 }catch(NullPointerException n){}
1686 currentAST.root = crear_AST;
1687 currentAST.child = crear_AST!=null &&crear_AST.getFirstChild()!=null ?
1688 crear_AST.getFirstChild() : crear_AST;
1689 currentAST.advanceChildToEnd();
1692 catch (RecognitionException ex) {
1693 if (inputState.guessing==0) {
1695 recover(ex,_tokenSet_17);
1700 returnAST = crear_AST;
1703 public final void asignacion() throws RecognitionException, TokenStreamException {
1706 ASTPair currentAST = new ASTPair();
1707 AST asignacion_AST = null;
1711 try { // for error handling
1713 e1_AST = (AST)returnAST;
1714 AST tmp34_AST = null;
1715 tmp34_AST = astFactory.create(LT(1));
1718 e2_AST = (AST)returnAST;
1719 if ( inputState.guessing==0 ) {
1720 asignacion_AST = (AST)currentAST.root;
1721 asignacion_AST = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(tmp34_AST)).add(e1_AST).add(e2_AST));
1722 currentAST.root = asignacion_AST;
1723 currentAST.child = asignacion_AST!=null &&asignacion_AST.getFirstChild()!=null ?
1724 asignacion_AST.getFirstChild() : asignacion_AST;
1725 currentAST.advanceChildToEnd();
1728 catch (RecognitionException ex) {
1729 if (inputState.guessing==0) {
1731 recover(ex,_tokenSet_17);
1736 returnAST = asignacion_AST;
1739 public final void llamada_metodo() throws RecognitionException, TokenStreamException {
1742 ASTPair currentAST = new ASTPair();
1743 AST llamada_metodo_AST = null;
1747 try { // for error handling
1749 i_AST = (AST)returnAST;
1750 AST tmp35_AST = null;
1751 tmp35_AST = astFactory.create(LT(1));
1752 match(PARENTESIS_ABIERTO);
1753 lista_expresiones();
1754 s_AST = (AST)returnAST;
1755 AST tmp36_AST = null;
1756 tmp36_AST = astFactory.create(LT(1));
1757 match(PARENTESIS_CERRADO);
1758 if ( inputState.guessing==0 ) {
1759 llamada_metodo_AST = (AST)currentAST.root;
1760 llamada_metodo_AST = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(LLAMADA,"llamada")).add(i_AST).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(EXPRESIONES,"expresiones")).add(s_AST))));
1761 currentAST.root = llamada_metodo_AST;
1762 currentAST.child = llamada_metodo_AST!=null &&llamada_metodo_AST.getFirstChild()!=null ?
1763 llamada_metodo_AST.getFirstChild() : llamada_metodo_AST;
1764 currentAST.advanceChildToEnd();
1767 catch (RecognitionException ex) {
1768 if (inputState.guessing==0) {
1770 recover(ex,_tokenSet_23);
1775 returnAST = llamada_metodo_AST;
1778 public final void escribir() throws RecognitionException, TokenStreamException {
1781 ASTPair currentAST = new ASTPair();
1782 AST escribir_AST = null;
1785 try { // for error handling
1786 AST tmp37_AST = null;
1787 tmp37_AST = astFactory.create(LT(1));
1789 AST tmp38_AST = null;
1790 tmp38_AST = astFactory.create(LT(1));
1791 match(PARENTESIS_ABIERTO);
1793 e_AST = (AST)returnAST;
1794 AST tmp39_AST = null;
1795 tmp39_AST = astFactory.create(LT(1));
1796 match(PARENTESIS_CERRADO);
1797 if ( inputState.guessing==0 ) {
1798 escribir_AST = (AST)currentAST.root;
1800 escribir_AST = arbol_escribir(e_AST);
1802 log.write("IDENTIFICADOR TIPO: "+e_AST.getFirstChild().getNextSibling().getFirstChild().getText()+"\n");
1803 }catch(NullPointerException n){}
1805 currentAST.root = escribir_AST;
1806 currentAST.child = escribir_AST!=null &&escribir_AST.getFirstChild()!=null ?
1807 escribir_AST.getFirstChild() : escribir_AST;
1808 currentAST.advanceChildToEnd();
1811 catch (RecognitionException ex) {
1812 if (inputState.guessing==0) {
1814 recover(ex,_tokenSet_17);
1819 returnAST = escribir_AST;
1822 public final void retorno() throws RecognitionException, TokenStreamException {
1825 ASTPair currentAST = new ASTPair();
1826 AST retorno_AST = null;
1829 try { // for error handling
1830 AST tmp40_AST = null;
1831 tmp40_AST = astFactory.create(LT(1));
1834 e_AST = (AST)returnAST;
1835 if ( inputState.guessing==0 ) {
1836 retorno_AST = (AST)currentAST.root;
1837 retorno_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(tmp40_AST)).add(e_AST));
1838 currentAST.root = retorno_AST;
1839 currentAST.child = retorno_AST!=null &&retorno_AST.getFirstChild()!=null ?
1840 retorno_AST.getFirstChild() : retorno_AST;
1841 currentAST.advanceChildToEnd();
1844 catch (RecognitionException ex) {
1845 if (inputState.guessing==0) {
1847 recover(ex,_tokenSet_17);
1852 returnAST = retorno_AST;
1855 public final void condicion() throws RecognitionException, TokenStreamException {
1858 ASTPair currentAST = new ASTPair();
1859 AST condicion_AST = null;
1861 try { // for error handling
1862 AST tmp41_AST = null;
1863 tmp41_AST = astFactory.create(LT(1));
1864 astFactory.makeASTRoot(currentAST, tmp41_AST);
1866 match(PARENTESIS_ABIERTO);
1868 astFactory.addASTChild(currentAST, returnAST);
1869 match(PARENTESIS_CERRADO);
1872 astFactory.addASTChild(currentAST, returnAST);
1879 astFactory.addASTChild(currentAST, returnAST);
1888 throw new NoViableAltException(LT(1), getFilename());
1893 condicion_AST = (AST)currentAST.root;
1895 catch (RecognitionException ex) {
1896 if (inputState.guessing==0) {
1898 recover(ex,_tokenSet_20);
1903 returnAST = condicion_AST;
1906 public final void iteracion() throws RecognitionException, TokenStreamException {
1909 ASTPair currentAST = new ASTPair();
1910 AST iteracion_AST = null;
1912 try { // for error handling
1913 AST tmp47_AST = null;
1914 tmp47_AST = astFactory.create(LT(1));
1915 astFactory.makeASTRoot(currentAST, tmp47_AST);
1917 match(PARENTESIS_ABIERTO);
1919 astFactory.addASTChild(currentAST, returnAST);
1920 match(PARENTESIS_CERRADO);
1923 astFactory.addASTChild(currentAST, returnAST);
1925 iteracion_AST = (AST)currentAST.root;
1927 catch (RecognitionException ex) {
1928 if (inputState.guessing==0) {
1930 recover(ex,_tokenSet_20);
1935 returnAST = iteracion_AST;
1938 public final void acceso() throws RecognitionException, TokenStreamException {
1941 ASTPair currentAST = new ASTPair();
1942 AST acceso_AST = null;
1950 try { // for error handling
1951 boolean synPredMatched10169 = false;
1952 if (((LA(1)==IDENT))) {
1953 int _m10169 = mark();
1954 synPredMatched10169 = true;
1955 inputState.guessing++;
1962 catch (RecognitionException pe) {
1963 synPredMatched10169 = false;
1966 inputState.guessing--;
1968 if ( synPredMatched10169 ) {
1970 i1_AST = astFactory.create(i1);
1972 AST tmp52_AST = null;
1973 tmp52_AST = astFactory.create(LT(1));
1976 i2_AST = astFactory.create(i2);
1978 if ( inputState.guessing==0 ) {
1979 acceso_AST = (AST)currentAST.root;
1981 log.write("ACCESO SIMPLE: "+i1_AST.getText());
1982 acceso_AST=(AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(ACCESO_OBJETO,"acceso_objeto")).add(ambito_tratar_acceso_simple(i1_AST)).add(i2_AST));
1984 currentAST.root = acceso_AST;
1985 currentAST.child = acceso_AST!=null &&acceso_AST.getFirstChild()!=null ?
1986 acceso_AST.getFirstChild() : acceso_AST;
1987 currentAST.advanceChildToEnd();
1990 else if ((LA(1)==IDENT)) {
1992 i_AST = astFactory.create(i);
1994 if ( inputState.guessing==0 ) {
1995 acceso_AST = (AST)currentAST.root;
1997 log.write("ACCESO SIMPLE: "+i_AST.getText());
1998 acceso_AST = ambito_tratar_acceso_simple(i_AST);
2000 currentAST.root = acceso_AST;
2001 currentAST.child = acceso_AST!=null &&acceso_AST.getFirstChild()!=null ?
2002 acceso_AST.getFirstChild() : acceso_AST;
2003 currentAST.advanceChildToEnd();
2007 throw new NoViableAltException(LT(1), getFilename());
2011 catch (RecognitionException ex) {
2012 if (inputState.guessing==0) {
2014 recover(ex,_tokenSet_24);
2019 returnAST = acceso_AST;
2022 public final void lista_expresiones() throws RecognitionException, TokenStreamException {
2025 ASTPair currentAST = new ASTPair();
2026 AST lista_expresiones_AST = null;
2028 try { // for error handling
2031 case PARENTESIS_ABIERTO:
2043 astFactory.addASTChild(currentAST, returnAST);
2047 if ((LA(1)==COMA)) {
2050 astFactory.addASTChild(currentAST, returnAST);
2058 lista_expresiones_AST = (AST)currentAST.root;
2061 case PARENTESIS_CERRADO:
2063 lista_expresiones_AST = (AST)currentAST.root;
2068 throw new NoViableAltException(LT(1), getFilename());
2072 catch (RecognitionException ex) {
2073 if (inputState.guessing==0) {
2075 recover(ex,_tokenSet_12);
2080 returnAST = lista_expresiones_AST;
2083 public final void expresion_nivel_1() throws RecognitionException, TokenStreamException {
2086 ASTPair currentAST = new ASTPair();
2087 AST expresion_nivel_1_AST = null;
2089 try { // for error handling
2090 expresion_nivel_2();
2091 astFactory.addASTChild(currentAST, returnAST);
2096 AST tmp54_AST = null;
2097 tmp54_AST = astFactory.create(LT(1));
2098 astFactory.makeASTRoot(currentAST, tmp54_AST);
2100 expresion_nivel_2();
2101 astFactory.addASTChild(currentAST, returnAST);
2109 expresion_nivel_1_AST = (AST)currentAST.root;
2111 catch (RecognitionException ex) {
2112 if (inputState.guessing==0) {
2114 recover(ex,_tokenSet_25);
2119 returnAST = expresion_nivel_1_AST;
2122 public final void expresion_nivel_2() throws RecognitionException, TokenStreamException {
2125 ASTPair currentAST = new ASTPair();
2126 AST expresion_nivel_2_AST = null;
2128 try { // for error handling
2133 AST tmp55_AST = null;
2134 tmp55_AST = astFactory.create(LT(1));
2135 astFactory.makeASTRoot(currentAST, tmp55_AST);
2140 case PARENTESIS_ABIERTO:
2154 throw new NoViableAltException(LT(1), getFilename());
2158 expresion_nivel_3();
2159 astFactory.addASTChild(currentAST, returnAST);
2160 expresion_nivel_2_AST = (AST)currentAST.root;
2162 catch (RecognitionException ex) {
2163 if (inputState.guessing==0) {
2165 recover(ex,_tokenSet_26);
2170 returnAST = expresion_nivel_2_AST;
2173 public final void expresion_nivel_3() throws RecognitionException, TokenStreamException {
2176 ASTPair currentAST = new ASTPair();
2177 AST expresion_nivel_3_AST = null;
2179 try { // for error handling
2180 expresion_nivel_4();
2181 astFactory.addASTChild(currentAST, returnAST);
2195 AST tmp56_AST = null;
2196 tmp56_AST = astFactory.create(LT(1));
2197 astFactory.makeASTRoot(currentAST, tmp56_AST);
2203 AST tmp57_AST = null;
2204 tmp57_AST = astFactory.create(LT(1));
2205 astFactory.makeASTRoot(currentAST, tmp57_AST);
2211 AST tmp58_AST = null;
2212 tmp58_AST = astFactory.create(LT(1));
2213 astFactory.makeASTRoot(currentAST, tmp58_AST);
2219 AST tmp59_AST = null;
2220 tmp59_AST = astFactory.create(LT(1));
2221 astFactory.makeASTRoot(currentAST, tmp59_AST);
2227 AST tmp60_AST = null;
2228 tmp60_AST = astFactory.create(LT(1));
2229 astFactory.makeASTRoot(currentAST, tmp60_AST);
2235 AST tmp61_AST = null;
2236 tmp61_AST = astFactory.create(LT(1));
2237 astFactory.makeASTRoot(currentAST, tmp61_AST);
2243 throw new NoViableAltException(LT(1), getFilename());
2247 expresion_nivel_4();
2248 astFactory.addASTChild(currentAST, returnAST);
2253 case PARENTESIS_CERRADO:
2257 case CORCHETE_CERRADO:
2263 throw new NoViableAltException(LT(1), getFilename());
2267 expresion_nivel_3_AST = (AST)currentAST.root;
2269 catch (RecognitionException ex) {
2270 if (inputState.guessing==0) {
2272 recover(ex,_tokenSet_26);
2277 returnAST = expresion_nivel_3_AST;
2280 public final void expresion_nivel_4() throws RecognitionException, TokenStreamException {
2283 ASTPair currentAST = new ASTPair();
2284 AST expresion_nivel_4_AST = null;
2286 try { // for error handling
2287 expresion_nivel_5();
2288 astFactory.addASTChild(currentAST, returnAST);
2292 if ((LA(1)==MAS||LA(1)==MENOS)) {
2297 AST tmp62_AST = null;
2298 tmp62_AST = astFactory.create(LT(1));
2299 astFactory.makeASTRoot(currentAST, tmp62_AST);
2305 AST tmp63_AST = null;
2306 tmp63_AST = astFactory.create(LT(1));
2307 astFactory.makeASTRoot(currentAST, tmp63_AST);
2313 throw new NoViableAltException(LT(1), getFilename());
2317 expresion_nivel_5();
2318 astFactory.addASTChild(currentAST, returnAST);
2326 expresion_nivel_4_AST = (AST)currentAST.root;
2328 catch (RecognitionException ex) {
2329 if (inputState.guessing==0) {
2331 recover(ex,_tokenSet_27);
2336 returnAST = expresion_nivel_4_AST;
2339 public final void expresion_nivel_5() throws RecognitionException, TokenStreamException {
2342 ASTPair currentAST = new ASTPair();
2343 AST expresion_nivel_5_AST = null;
2345 try { // for error handling
2346 expresion_nivel_6();
2347 astFactory.addASTChild(currentAST, returnAST);
2351 if ((LA(1)==POR||LA(1)==DIVISION)) {
2356 AST tmp64_AST = null;
2357 tmp64_AST = astFactory.create(LT(1));
2358 astFactory.makeASTRoot(currentAST, tmp64_AST);
2364 AST tmp65_AST = null;
2365 tmp65_AST = astFactory.create(LT(1));
2366 astFactory.makeASTRoot(currentAST, tmp65_AST);
2372 throw new NoViableAltException(LT(1), getFilename());
2376 expresion_nivel_6();
2377 astFactory.addASTChild(currentAST, returnAST);
2385 expresion_nivel_5_AST = (AST)currentAST.root;
2387 catch (RecognitionException ex) {
2388 if (inputState.guessing==0) {
2390 recover(ex,_tokenSet_28);
2395 returnAST = expresion_nivel_5_AST;
2398 public final void expresion_nivel_6() throws RecognitionException, TokenStreamException {
2401 ASTPair currentAST = new ASTPair();
2402 AST expresion_nivel_6_AST = null;
2405 try { // for error handling
2409 AST tmp66_AST = null;
2410 tmp66_AST = astFactory.create(LT(1));
2411 astFactory.addASTChild(currentAST, tmp66_AST);
2413 expresion_nivel_7();
2414 i_AST = (AST)returnAST;
2415 astFactory.addASTChild(currentAST, returnAST);
2416 if ( inputState.guessing==0 ) {
2417 expresion_nivel_6_AST = (AST)currentAST.root;
2418 expresion_nivel_6_AST=(AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(MENOSUNARIO,"menosunario")).add(i_AST));
2419 currentAST.root = expresion_nivel_6_AST;
2420 currentAST.child = expresion_nivel_6_AST!=null &&expresion_nivel_6_AST.getFirstChild()!=null ?
2421 expresion_nivel_6_AST.getFirstChild() : expresion_nivel_6_AST;
2422 currentAST.advanceChildToEnd();
2424 expresion_nivel_6_AST = (AST)currentAST.root;
2428 case PARENTESIS_ABIERTO:
2437 expresion_nivel_7();
2438 astFactory.addASTChild(currentAST, returnAST);
2439 expresion_nivel_6_AST = (AST)currentAST.root;
2444 throw new NoViableAltException(LT(1), getFilename());
2448 catch (RecognitionException ex) {
2449 if (inputState.guessing==0) {
2451 recover(ex,_tokenSet_23);
2456 returnAST = expresion_nivel_6_AST;
2459 public final void expresion_nivel_7() throws RecognitionException, TokenStreamException {
2462 ASTPair currentAST = new ASTPair();
2463 AST expresion_nivel_7_AST = null;
2465 try { // for error handling
2467 case PARENTESIS_ABIERTO:
2469 match(PARENTESIS_ABIERTO);
2471 astFactory.addASTChild(currentAST, returnAST);
2472 match(PARENTESIS_CERRADO);
2473 expresion_nivel_7_AST = (AST)currentAST.root;
2479 astFactory.addASTChild(currentAST, returnAST);
2480 expresion_nivel_7_AST = (AST)currentAST.root;
2486 astFactory.addASTChild(currentAST, returnAST);
2487 expresion_nivel_7_AST = (AST)currentAST.root;
2492 AST tmp69_AST = null;
2493 tmp69_AST = astFactory.create(LT(1));
2494 astFactory.addASTChild(currentAST, tmp69_AST);
2496 expresion_nivel_7_AST = (AST)currentAST.root;
2501 AST tmp70_AST = null;
2502 tmp70_AST = astFactory.create(LT(1));
2503 astFactory.addASTChild(currentAST, tmp70_AST);
2505 expresion_nivel_7_AST = (AST)currentAST.root;
2510 AST tmp71_AST = null;
2511 tmp71_AST = astFactory.create(LT(1));
2512 astFactory.addASTChild(currentAST, tmp71_AST);
2514 expresion_nivel_7_AST = (AST)currentAST.root;
2519 AST tmp72_AST = null;
2520 tmp72_AST = astFactory.create(LT(1));
2521 astFactory.addASTChild(currentAST, tmp72_AST);
2523 expresion_nivel_7_AST = (AST)currentAST.root;
2528 AST tmp73_AST = null;
2529 tmp73_AST = astFactory.create(LT(1));
2530 astFactory.addASTChild(currentAST, tmp73_AST);
2532 expresion_nivel_7_AST = (AST)currentAST.root;
2536 boolean synPredMatched10163 = false;
2537 if (((LA(1)==IDENT))) {
2538 int _m10163 = mark();
2539 synPredMatched10163 = true;
2540 inputState.guessing++;
2544 match(PARENTESIS_ABIERTO);
2547 catch (RecognitionException pe) {
2548 synPredMatched10163 = false;
2551 inputState.guessing--;
2553 if ( synPredMatched10163 ) {
2555 astFactory.addASTChild(currentAST, returnAST);
2556 expresion_nivel_7_AST = (AST)currentAST.root;
2559 boolean synPredMatched10165 = false;
2560 if (((LA(1)==IDENT))) {
2561 int _m10165 = mark();
2562 synPredMatched10165 = true;
2563 inputState.guessing++;
2567 match(CORCHETE_ABIERTO);
2570 catch (RecognitionException pe) {
2571 synPredMatched10165 = false;
2574 inputState.guessing--;
2576 if ( synPredMatched10165 ) {
2578 astFactory.addASTChild(currentAST, returnAST);
2579 expresion_nivel_7_AST = (AST)currentAST.root;
2581 else if ((LA(1)==IDENT)) {
2583 astFactory.addASTChild(currentAST, returnAST);
2584 expresion_nivel_7_AST = (AST)currentAST.root;
2587 throw new NoViableAltException(LT(1), getFilename());
2591 catch (RecognitionException ex) {
2592 if (inputState.guessing==0) {
2594 recover(ex,_tokenSet_23);
2599 returnAST = expresion_nivel_7_AST;
2602 public final void entero_a_real() throws RecognitionException, TokenStreamException {
2605 ASTPair currentAST = new ASTPair();
2606 AST entero_a_real_AST = null;
2609 try { // for error handling
2610 AST tmp74_AST = null;
2611 tmp74_AST = astFactory.create(LT(1));
2612 match(ENTERO_A_REAL);
2613 AST tmp75_AST = null;
2614 tmp75_AST = astFactory.create(LT(1));
2615 match(PARENTESIS_ABIERTO);
2617 e1_AST = (AST)returnAST;
2618 AST tmp76_AST = null;
2619 tmp76_AST = astFactory.create(LT(1));
2620 match(PARENTESIS_CERRADO);
2621 if ( inputState.guessing==0 ) {
2622 entero_a_real_AST = (AST)currentAST.root;
2623 entero_a_real_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(tmp74_AST)).add(e1_AST));
2624 currentAST.root = entero_a_real_AST;
2625 currentAST.child = entero_a_real_AST!=null &&entero_a_real_AST.getFirstChild()!=null ?
2626 entero_a_real_AST.getFirstChild() : entero_a_real_AST;
2627 currentAST.advanceChildToEnd();
2630 catch (RecognitionException ex) {
2631 if (inputState.guessing==0) {
2633 recover(ex,_tokenSet_23);
2638 returnAST = entero_a_real_AST;
2641 public final void real_a_entero() throws RecognitionException, TokenStreamException {
2644 ASTPair currentAST = new ASTPair();
2645 AST real_a_entero_AST = null;
2648 try { // for error handling
2649 AST tmp77_AST = null;
2650 tmp77_AST = astFactory.create(LT(1));
2651 match(REAL_A_ENTERO);
2652 AST tmp78_AST = null;
2653 tmp78_AST = astFactory.create(LT(1));
2654 match(PARENTESIS_ABIERTO);
2656 e1_AST = (AST)returnAST;
2657 AST tmp79_AST = null;
2658 tmp79_AST = astFactory.create(LT(1));
2659 match(PARENTESIS_CERRADO);
2660 if ( inputState.guessing==0 ) {
2661 real_a_entero_AST = (AST)currentAST.root;
2662 real_a_entero_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(tmp77_AST)).add(e1_AST));
2663 currentAST.root = real_a_entero_AST;
2664 currentAST.child = real_a_entero_AST!=null &&real_a_entero_AST.getFirstChild()!=null ?
2665 real_a_entero_AST.getFirstChild() : real_a_entero_AST;
2666 currentAST.advanceChildToEnd();
2669 catch (RecognitionException ex) {
2670 if (inputState.guessing==0) {
2672 recover(ex,_tokenSet_23);
2677 returnAST = real_a_entero_AST;
2680 public final void acceso_tabla() throws RecognitionException, TokenStreamException {
2683 ASTPair currentAST = new ASTPair();
2684 AST acceso_tabla_AST = null;
2688 try { // for error handling
2690 c_AST = (AST)returnAST;
2691 AST tmp80_AST = null;
2692 tmp80_AST = astFactory.create(LT(1));
2693 match(CORCHETE_ABIERTO);
2694 lista_expresiones_nv();
2695 d_AST = (AST)returnAST;
2696 AST tmp81_AST = null;
2697 tmp81_AST = astFactory.create(LT(1));
2698 match(CORCHETE_CERRADO);
2699 if ( inputState.guessing==0 ) {
2700 acceso_tabla_AST = (AST)currentAST.root;
2701 acceso_tabla_AST=(AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(ACCESO_TABLA,"acceso_tabla")).add(c_AST).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(EXPRESIONES,"expresiones")).add(d_AST))));
2702 currentAST.root = acceso_tabla_AST;
2703 currentAST.child = acceso_tabla_AST!=null &&acceso_tabla_AST.getFirstChild()!=null ?
2704 acceso_tabla_AST.getFirstChild() : acceso_tabla_AST;
2705 currentAST.advanceChildToEnd();
2708 catch (RecognitionException ex) {
2709 if (inputState.guessing==0) {
2711 recover(ex,_tokenSet_23);
2716 returnAST = acceso_tabla_AST;
2719 public final void lista_expresiones_nv() throws RecognitionException, TokenStreamException {
2722 ASTPair currentAST = new ASTPair();
2723 AST lista_expresiones_nv_AST = null;
2725 try { // for error handling
2727 astFactory.addASTChild(currentAST, returnAST);
2731 if ((LA(1)==COMA)) {
2734 astFactory.addASTChild(currentAST, returnAST);
2742 lista_expresiones_nv_AST = (AST)currentAST.root;
2744 catch (RecognitionException ex) {
2745 if (inputState.guessing==0) {
2747 recover(ex,_tokenSet_29);
2752 returnAST = lista_expresiones_nv_AST;
2755 public final void tipo_predefinido_simple() throws RecognitionException, TokenStreamException {
2758 ASTPair currentAST = new ASTPair();
2759 AST tipo_predefinido_simple_AST = null;
2761 try { // for error handling
2765 AST tmp83_AST = null;
2766 tmp83_AST = astFactory.create(LT(1));
2767 astFactory.addASTChild(currentAST, tmp83_AST);
2769 tipo_predefinido_simple_AST = (AST)currentAST.root;
2774 AST tmp84_AST = null;
2775 tmp84_AST = astFactory.create(LT(1));
2776 astFactory.addASTChild(currentAST, tmp84_AST);
2778 tipo_predefinido_simple_AST = (AST)currentAST.root;
2783 AST tmp85_AST = null;
2784 tmp85_AST = astFactory.create(LT(1));
2785 astFactory.addASTChild(currentAST, tmp85_AST);
2787 tipo_predefinido_simple_AST = (AST)currentAST.root;
2792 AST tmp86_AST = null;
2793 tmp86_AST = astFactory.create(LT(1));
2794 astFactory.addASTChild(currentAST, tmp86_AST);
2796 tipo_predefinido_simple_AST = (AST)currentAST.root;
2801 throw new NoViableAltException(LT(1), getFilename());
2805 catch (RecognitionException ex) {
2806 if (inputState.guessing==0) {
2808 recover(ex,_tokenSet_11);
2813 returnAST = tipo_predefinido_simple_AST;
2816 public final void tipo_predefinido_compuesto() throws RecognitionException, TokenStreamException {
2819 ASTPair currentAST = new ASTPair();
2820 AST tipo_predefinido_compuesto_AST = null;
2822 try { // for error handling
2824 astFactory.addASTChild(currentAST, returnAST);
2825 tipo_predefinido_compuesto_AST = (AST)currentAST.root;
2827 catch (RecognitionException ex) {
2828 if (inputState.guessing==0) {
2830 recover(ex,_tokenSet_11);
2835 returnAST = tipo_predefinido_compuesto_AST;
2838 public final void formacion() throws RecognitionException, TokenStreamException {
2841 ASTPair currentAST = new ASTPair();
2842 AST formacion_AST = null;
2848 try { // for error handling
2849 AST tmp87_AST = null;
2850 tmp87_AST = astFactory.create(LT(1));
2853 l_AST = (AST)returnAST;
2861 tipo_predefinido_simple();
2862 t_AST = (AST)returnAST;
2863 if ( inputState.guessing==0 ) {
2864 formacion_AST = (AST)currentAST.root;
2865 formacion_AST = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(FORMACION,"formacion")).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(LISTA_ENTEROS,"lista_enteros")).add(l_AST))).add(t_AST));
2866 currentAST.root = formacion_AST;
2867 currentAST.child = formacion_AST!=null &&formacion_AST.getFirstChild()!=null ?
2868 formacion_AST.getFirstChild() : formacion_AST;
2869 currentAST.advanceChildToEnd();
2876 i_AST = astFactory.create(i);
2878 if ( inputState.guessing==0 ) {
2879 formacion_AST = (AST)currentAST.root;
2880 formacion_AST = (AST)astFactory.make( (new ASTArray(3)).add(astFactory.create(FORMACION,"formacion")).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(LISTA_ENTEROS,"lista_enteros")).add(l_AST))).add(ambito_tratar_ident_tipo(i_AST)));
2881 log.write("IDENTIFICADOR TIPO: "+i_AST.getText()+"\n");
2883 currentAST.root = formacion_AST;
2884 currentAST.child = formacion_AST!=null &&formacion_AST.getFirstChild()!=null ?
2885 formacion_AST.getFirstChild() : formacion_AST;
2886 currentAST.advanceChildToEnd();
2892 throw new NoViableAltException(LT(1), getFilename());
2897 catch (RecognitionException ex) {
2898 if (inputState.guessing==0) {
2900 recover(ex,_tokenSet_11);
2905 returnAST = formacion_AST;
2908 public final void lista_enteros() throws RecognitionException, TokenStreamException {
2911 ASTPair currentAST = new ASTPair();
2912 AST lista_enteros_AST = null;
2914 try { // for error handling
2915 AST tmp88_AST = null;
2916 tmp88_AST = astFactory.create(LT(1));
2917 astFactory.addASTChild(currentAST, tmp88_AST);
2922 if ((LA(1)==COMA)) {
2924 AST tmp90_AST = null;
2925 tmp90_AST = astFactory.create(LT(1));
2926 astFactory.addASTChild(currentAST, tmp90_AST);
2935 lista_enteros_AST = (AST)currentAST.root;
2937 catch (RecognitionException ex) {
2938 if (inputState.guessing==0) {
2940 recover(ex,_tokenSet_30);
2945 returnAST = lista_enteros_AST;
2949 public static final String[] _tokenNames = {
2953 "NULL_TREE_LOOKAHEAD",
2968 "VARIABLES_LOCALES",
2989 "PARENTESIS_ABIERTO",
2991 "PARENTESIS_CERRADO",
3033 protected void buildTokenTypeASTClassMap() {
3034 tokenTypeToASTClassMap=null;
3037 private static final long[] mk_tokenSet_0() {
3038 long[] data = { 2L, 0L};
3041 public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0());
3042 private static final long[] mk_tokenSet_1() {
3043 long[] data = { 10737418240L, 0L};
3046 public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1());
3047 private static final long[] mk_tokenSet_2() {
3048 long[] data = { 8589934592L, 0L};
3051 public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2());
3052 private static final long[] mk_tokenSet_3() {
3053 long[] data = { 25769803778L, 0L};
3056 public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3());
3057 private static final long[] mk_tokenSet_4() {
3058 long[] data = { 128849018882L, 0L};
3061 public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4());
3062 private static final long[] mk_tokenSet_5() {
3063 long[] data = { 68719476736L, 0L};
3066 public static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5());
3067 private static final long[] mk_tokenSet_6() {
3068 long[] data = { 137438953472L, 0L};
3071 public static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6());
3072 private static final long[] mk_tokenSet_7() {
3073 long[] data = { 536870976L, 15872L, 0L, 0L};
3076 public static final BitSet _tokenSet_7 = new BitSet(mk_tokenSet_7());
3077 private static final long[] mk_tokenSet_8() {
3078 long[] data = { 274877906944L, 0L};
3081 public static final BitSet _tokenSet_8 = new BitSet(mk_tokenSet_8());
3082 private static final long[] mk_tokenSet_9() {
3083 long[] data = { 536870912L, 15872L, 0L, 0L};
3086 public static final BitSet _tokenSet_9 = new BitSet(mk_tokenSet_9());
3087 private static final long[] mk_tokenSet_10() {
3088 long[] data = { 275414777920L, 15872L, 0L, 0L};
3091 public static final BitSet _tokenSet_10 = new BitSet(mk_tokenSet_10());
3092 private static final long[] mk_tokenSet_11() {
3093 long[] data = { 137975824384L, 0L};
3096 public static final BitSet _tokenSet_11 = new BitSet(mk_tokenSet_11());
3097 private static final long[] mk_tokenSet_12() {
3098 long[] data = { 2199023255552L, 0L};
3101 public static final BitSet _tokenSet_12 = new BitSet(mk_tokenSet_12());
3102 private static final long[] mk_tokenSet_13() {
3103 long[] data = { 2200096997376L, 0L};
3106 public static final BitSet _tokenSet_13 = new BitSet(mk_tokenSet_13());
3107 private static final long[] mk_tokenSet_14() {
3108 long[] data = { 4630303774479482880L, 114812L, 0L, 0L};
3111 public static final BitSet _tokenSet_14 = new BitSet(mk_tokenSet_14());
3112 private static final long[] mk_tokenSet_15() {
3113 long[] data = { 2674287156658176L, 0L};
3116 public static final BitSet _tokenSet_15 = new BitSet(mk_tokenSet_15());
3117 private static final long[] mk_tokenSet_16() {
3118 long[] data = { 4630303774479482880L, 130684L, 0L, 0L};
3121 public static final BitSet _tokenSet_16 = new BitSet(mk_tokenSet_16());
3122 private static final long[] mk_tokenSet_17() {
3123 long[] data = { 1099511627776L, 0L};
3126 public static final BitSet _tokenSet_17 = new BitSet(mk_tokenSet_17());
3127 private static final long[] mk_tokenSet_18() {
3128 long[] data = { 1100585369600L, 0L};
3131 public static final BitSet _tokenSet_18 = new BitSet(mk_tokenSet_18());
3132 private static final long[] mk_tokenSet_19() {
3133 long[] data = { 4630303499601575936L, 114812L, 0L, 0L};
3136 public static final BitSet _tokenSet_19 = new BitSet(mk_tokenSet_19());
3137 private static final long[] mk_tokenSet_20() {
3138 long[] data = { 4632977786758234112L, 114812L, 0L, 0L};
3141 public static final BitSet _tokenSet_20 = new BitSet(mk_tokenSet_20());
3142 private static final long[] mk_tokenSet_21() {
3143 long[] data = { 4629700967229554688L, 98428L, 0L, 0L};
3146 public static final BitSet _tokenSet_21 = new BitSet(mk_tokenSet_21());
3147 private static final long[] mk_tokenSet_22() {
3148 long[] data = { 12095701647360L, 128L, 0L, 0L};
3151 public static final BitSet _tokenSet_22 = new BitSet(mk_tokenSet_22());
3152 private static final long[] mk_tokenSet_23() {
3153 long[] data = { -22505902435205120L, 129L, 0L, 0L};
3156 public static final BitSet _tokenSet_23 = new BitSet(mk_tokenSet_23());
3157 private static final long[] mk_tokenSet_24() {
3158 long[] data = { -22505352679391232L, 131L, 0L, 0L};
3161 public static final BitSet _tokenSet_24 = new BitSet(mk_tokenSet_24());
3162 private static final long[] mk_tokenSet_25() {
3163 long[] data = { 4515695329017856L, 128L, 0L, 0L};
3166 public static final BitSet _tokenSet_25 = new BitSet(mk_tokenSet_25());
3167 private static final long[] mk_tokenSet_26() {
3168 long[] data = { 13522894583758848L, 128L, 0L, 0L};
3171 public static final BitSet _tokenSet_26 = new BitSet(mk_tokenSet_26());
3172 private static final long[] mk_tokenSet_27() {
3173 long[] data = { 2283337106778488832L, 128L, 0L, 0L};
3176 public static final BitSet _tokenSet_27 = new BitSet(mk_tokenSet_27());
3177 private static final long[] mk_tokenSet_28() {
3178 long[] data = { 9200866134419570688L, 128L, 0L, 0L};
3181 public static final BitSet _tokenSet_28 = new BitSet(mk_tokenSet_28());
3182 private static final long[] mk_tokenSet_29() {
3183 long[] data = { 0L, 128L, 0L, 0L};
3186 public static final BitSet _tokenSet_29 = new BitSet(mk_tokenSet_29());
3187 private static final long[] mk_tokenSet_30() {
3188 long[] data = { 536870912L, 7680L, 0L, 0L};
3191 public static final BitSet _tokenSet_30 = new BitSet(mk_tokenSet_30());