public void generate(TextArea area){
        try {
            gt.analyse();
            ge_code(area, gt.root);
        }catch (SemanticErr e){
            area.setText("");
            area.append("Exception: ");
            area.append(e.getMessage());
        }
    }