Ignore:
Timestamp:
Aug 28, 2014, 8:26:35 AM (5 years ago)
Author:
cameron
Message:

Support for Pablo if-statements; use for utf-8 scope streams

File:
1 edited

Legend:

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

    r3984 r4086  
    6060        retVal = "Assign('" + an->getM() + "', " + ShowPabloE(an->getExpr()) + "),";
    6161    }
    62     if (While* whl = dynamic_cast<While*>(stmt))
     62    else if (If* ifstmt = dynamic_cast<If*>(stmt))
     63    {
     64        retVal = "If(" + ShowPabloE(ifstmt->getExpr()) + ", " + Print_PB_PabloStmts(ifstmt->getPSList(), retVal) + ")";
     65    }
     66    else if (While* whl = dynamic_cast<While*>(stmt))
    6367    {
    6468        retVal = "While(" + ShowPabloE(whl->getExpr()) + ", " + Print_PB_PabloStmts(whl->getPSList(), retVal) + ")";
    6569    }
    66 
     70    else retVal = "UNKNOWN_STATEMENT_TYPE!!!";
    6771    return retVal;
    6872}
     
    121125        retVal = "ScanThru (" + ShowPabloE(sthru->getScanFrom()) + ", " + ShowPabloE(sthru->getScanThru()) + ")";
    122126    }
     127    else retVal = "UNKNOWN_Pablo_EXPRESSION_TYPE!!!";
    123128
    124129    return retVal;
Note: See TracChangeset for help on using the changeset viewer.