public void generate() {
        for(BaseNode node : parseTree) {
            try {
                generate(node);
            } catch(IRException ex) {
                continue;
            }
        }

        //for CFG
        int i = 0;
        for(Code code: codes) {
            code.buildCFG();
            CFG gr = code.getCFG();
            System.out.println("\n\nCFG " + (i++) + ": " + gr.toString());
        }
    }