Changeset 5227 for icGREP/icgrepdevel/icgrep/pablo/pabloAST.h
 Timestamp:
 Dec 16, 2016, 4:16:28 PM (2 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

icGREP/icgrepdevel/icgrep/pablo/pabloAST.h
r5217 r5227 32 32 friend class PabloBlock; 33 33 friend class Prototype; 34 friend class PabloFunction;35 34 friend class SymbolGenerator; 36 35 friend class Count; 37 36 friend class Var; 37 friend class Operator; 38 38 public: 39 39 … … 63 63 , Function 64 64 , Prototype 65 // Arithmetic expressions 66 , Add 67 , Subtract 68 // Relational expressions 69 , LessThan 70 , LessThanEquals 71 , Equals 72 , GreaterThanEquals 73 , GreaterThan 74 , NotEquals 65 75 /** Statements **/ 66 76 // Boolean operations … … 79 89 // Statistics operations 80 90 , Count 81 // Arithmetic operations82 , Add83 , Subtract84 91 // Variable assignments 85 92 , Assign … … 193 200 public: 194 201 static inline bool classof(const PabloAST * e) { 195 switch (e>getClassTypeId()) { 196 case PabloAST::ClassTypeId::Zeroes: 197 case PabloAST::ClassTypeId::Ones: 198 case PabloAST::ClassTypeId::Var: 199 case PabloAST::ClassTypeId::String: 200 case PabloAST::ClassTypeId::Integer: 201 case PabloAST::ClassTypeId::Block: 202 case PabloAST::ClassTypeId::Function: 203 case PabloAST::ClassTypeId::Prototype: 204 return false; 205 default: 206 return true; 207 } 202 return ((unsigned)e>getClassTypeId() >= (unsigned)PabloAST::ClassTypeId::And); 208 203 } 209 204 static inline bool classof(const Statement *) {
Note: See TracChangeset
for help on using the changeset viewer.