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

Last change on this file since 5585 was 5568, checked in by xuedongx, 2 years ago

add analysis for local language

File size: 505 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 UCD::UnicodeSet* first(RE * re);
14        static UCD::UnicodeSet* 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.