Ignore:
Timestamp:
May 19, 2016, 8:50:15 PM (3 years ago)
Author:
cameron
Message:

Add pablo.atEOF; clean out bit4/6 hack for unterminated final lines in icgrep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.cpp

    r5023 r5042  
    156156PabloAST * PabloBlock::createInFile(PabloAST * expr) {
    157157    assert (expr);
    158     return insertAtInsertionPoint(new InFile(expr, makeName("count_")));
     158    return insertAtInsertionPoint(new InFile(expr, makeName("inFile_")));
    159159}
    160160
     
    165165
    166166
    167 /// BINARY CREATE FUNCTIONS
     167PabloAST * PabloBlock::createAtEOF(PabloAST * expr) {
     168    assert (expr);
     169    return insertAtInsertionPoint(new AtEOF(expr, makeName("atEOF_")));
     170}
     171
     172PabloAST * PabloBlock::createAtEOF(PabloAST * expr, const std::string prefix) {
     173    assert (expr);
     174    return insertAtInsertionPoint(new AtEOF(expr, makeName(prefix, false)));
     175}
     176   
     177   
     178    /// BINARY CREATE FUNCTIONS
    168179
    169180Next * PabloBlock::createNext(Assign * assign, PabloAST * expr) {
Note: See TracChangeset for help on using the changeset viewer.