Ignore:
Timestamp:
Dec 18, 2014, 10:49:33 AM (4 years ago)
Author:
cameron
Message:

Pablo printer uses ostream, python Pablo syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/compiler.cpp

    r4337 r4346  
    2525#include <pablo/analysis/useanalysis.h>
    2626
    27 //#define DEBUG_PRINT_RE_AST
    28 //#define DEBUG_PRINT_PBIX_AST
     27#define DEBUG_PRINT_RE_AST
     28#define DEBUG_PRINT_PBIX_AST
    2929
    3030#ifdef DEBUG_PRINT_RE_AST
     
    113113    #ifdef DEBUG_PRINT_PBIX_AST
    114114    //Print to the terminal the AST that was generated by the character class compiler.
    115     std::cerr << "CC AST:" << std::endl << PabloPrinter::print(main.statements()) << std::endl;
     115    std::cerr << "CC AST:" << std::endl;
     116    PabloPrinter::print(main.statements(), std::cerr);
    116117    #endif
    117118
     
    124125    #ifdef DEBUG_PRINT_PBIX_AST
    125126    //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    126     std::cerr << "Initial Pablo AST:" << PabloPrinter::print(main.statements()) << ")" << std::endl;
     127    std::cerr << "Initial Pablo AST:\n";
     128    PabloPrinter::print(main.statements(), std::cerr);
    127129    #endif
    128130
     
    132134    #ifdef DEBUG_PRINT_PBIX_AST
    133135    //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    134     std::cerr << "Final Pablo AST:" << PabloPrinter::print(main.statements()) << ")" << std::endl;
     136    std::cerr << "Final Pablo AST:\n";
     137    PabloPrinter::print(main.statements(), std::cerr);
    135138    #endif
    136139
Note: See TracChangeset for help on using the changeset viewer.