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/pe_infile.h

    r5024 r5042  
    3030};
    3131
     32class AtEOF : public Statement {
     33    friend class PabloBlock;
     34public:
     35    static inline bool classof(const PabloAST * e) {
     36        return e->getClassTypeId() == ClassTypeId::AtEOF;
     37    }
     38    static inline bool classof(const void *) {
     39        return false;
     40    }
     41    virtual ~AtEOF(){
     42    }
     43    PabloAST * getExpr() const {
     44        return getOperand(0);
     45    }
     46protected:
     47    AtEOF(PabloAST * expr, String * name) : Statement(ClassTypeId::AtEOF, {expr}, name) { }
     48};
     49   
    3250}
    3351
Note: See TracChangeset for help on using the changeset viewer.