source: icGREP/icgrep-devel/icgrep/re/re_nullable.h @ 5350

Last change on this file since 5350 was 5267, checked in by nmedfort, 3 years ago

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File size: 698 bytes
Line 
1#ifndef RE_NULLABLE_H
2#define RE_NULLABLE_H
3
4namespace re { class RE; }
5namespace re { class Vector; }
6
7namespace re {
8
9class RE_Nullable {
10public:
11    static RE * removeNullablePrefix(RE * re);
12    static RE * removeNullableSuffix(RE * re);
13    static RE * removeNullableAssertion(RE * re);
14    static RE * removeNullableAfterAssertion(RE * re); 
15private:
16    static bool isNullableAfterAssertion(const RE * re);
17    static RE * removeNullableAfterAssertion_helper(RE * re);
18    static bool isNullable(const RE * re);
19    static bool isNullable(const Vector * vec);
20    static bool hasNullablePrefix(const RE * re);
21    static bool hasNullableSuffix(const RE * re);
22};
23
24}
25
26#endif // RE_NULLABLE_H
Note: See TracBrowser for help on using the repository browser.