private String checkType(Nodo chk){
        String res=new String();
        switch(chk.getToken()){
            case Identificador:
                res+=this.genCode(Nodo.KindToken.ID,((Nodo)chk.getNodo().iterator().next()),chk.getDato());
                break;
            case PalabraReservada:
                if(chk.getDato().equals("if")){
                    res+=this.genCode(Nodo.KindToken.IF, chk, chk.getDato());
                }else if(chk.getDato().equals("while")){
                    res+=this.genCode(Nodo.KindToken.WHILE, chk, chk.getDato());
                }else if(chk.getDato().equals("do")){
                    res+=this.genCode(Nodo.KindToken.DO, chk, chk.getDato());
                }else if(chk.getDato().equals("int")){
                    res+=this.genCode(Nodo.KindToken.INT, chk, chk.getDato());
                }else if(chk.getDato().equals("float")){
                    res+=this.genCode(Nodo.KindToken.FLOAT, chk, chk.getDato());
                }else if(chk.getDato().equals("write")){
                    res+=this.genCode(Nodo.KindToken.WRITE, chk, chk.getDato());
                }else if(chk.getDato().equals("read")){
                    res+=this.genCode(Nodo.KindToken.READ, chk, chk.getDato());
                }
        }
        return res;
    }