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

Last change on this file was 5632, checked in by cameron, 2 months ago

Optimizations for re_local

File size: 446 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<CC*, CC*> &follow_map);
16        static bool isLocalLanguage(RE * re);
17private:
18        static bool isLocalLanguage_helper(const RE * re, UCD::UnicodeSet & seen);
19        static bool isNullable(const RE * re);
20};
21
22}
23
24#endif
Note: See TracBrowser for help on using the repository browser.