source: icGREP/icgrep-devel/icgrep/re/re_local.h @ 5619

Last change on this file since 5619 was 5619, checked in by nmedfort, 22 months ago

Memory leak fixes + minor optimization of RE_local.

File size: 487 bytes
Line 
1#ifndef RE_LOCAL_H
2#define RE_LOCAL_H
3
4#include <UCD/ucd_compiler.hpp>
5#include <map>
6
7namespace re {
8
9class RE;
10
11class RE_Local {
12public:
13    static CC * first(RE * re);
14    static CC * final(RE * re);
15        static void follow(RE * re, std::map<UCD::UnicodeSet*, UCD::UnicodeSet*> &follow_map);
16        static bool isLocalLanguage(RE * re);
17private:
18        static RE * collect_UnicodeSets_helper(RE * re, std::vector<UCD::UnicodeSet> & UnicodeSets);
19        static bool isNullable(const RE * re);
20};
21
22}
23
24#endif
Note: See TracBrowser for help on using the repository browser.