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

Last change on this file since 4532 was 4438, checked in by nmedfort, 4 years ago

Preliminary steps for removal of superfluous Assigns.

File size: 957 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
[4410]14class MatchStar : public Statement {
[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:
[4438]31    MatchStar(PabloAST * marker, PabloAST * cc, String * name, PabloBlock * parent)
32    : Statement(ClassTypeId::MatchStar, {marker, cc}, name, parent)
[4209]33    {
[4414]34
[4209]35    }
[3850]36};
37
[4199]38}
39
[3850]40#endif // PE_MATCHSTAR_H
41
42
43
Note: See TracBrowser for help on using the repository browser.