source: icGREP/icgrep-devel/icgrep/pablo/pe_matchstar.h @ 5486

Last change on this file since 5486 was 5486, checked in by nmedfort, 2 years ago

Initial attempt to improve debugging capabilities with compilation stack traces on error.

File size: 1017 bytes
RevLine 
[3850]1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef PE_MATCHSTAR_H
8#define PE_MATCHSTAR_H
9
[4438]10#include <pablo/pabloAST.h>
[3850]11
[4199]12namespace pablo {
13
[5486]14class MatchStar final : public CarryProducingStatement {
[4227]15    friend class PabloBlock;
[3850]16public:
[4244]17    static inline bool classof(const PabloAST * e) {
[4200]18        return e->getClassTypeId() == ClassTypeId::MatchStar;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
[4253]23    inline PabloAST * getMarker() const {
[4432]24        return getOperand(0);
[4199]25    }
[4253]26    inline PabloAST * getCharClass() const  {
[4432]27        return getOperand(1);
[4199]28    }
[4432]29    virtual ~MatchStar() {}
[4209]30protected:
[5230]31    MatchStar(PabloAST * marker,  PabloAST * cc, const String * name, Allocator & allocator)
[5486]32    : CarryProducingStatement(ClassTypeId::MatchStar, marker->getType(), {marker, cc}, name, allocator) {
[4209]33    }
[3850]34};
35
[4199]36}
37
[3850]38#endif // PE_MATCHSTAR_H
39
40
41
Note: See TracBrowser for help on using the repository browser.