source: icGREP/icgrep-devel/icgrep/re/re_toolchain.h @ 5130

Last change on this file since 5130 was 5030, checked in by cameron, 3 years ago

Restructure regular expression command flags

File size: 968 bytes
Line 
1/*
2 *  Copyright (c) 2016 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 RE_TOOLCHAIN_H
8#define RE_TOOLCHAIN_H
9
10#include "utf_encoding.h"
11
12#include <re/re_re.h>
13#include <pablo/function.h>
14#include <llvm/Support/CommandLine.h>
15
16namespace re {
17
18enum RE_PrintFlags {
19    PrintAllREs, PrintParsedREs, PrintStrippedREs, PrintSimplifiedREs
20};
21   
22enum RE_AlgorithmFlags {
23    DisableLog2BoundedRepetition, DisableIfHierarchy, DisableMatchStar, DisableUnicodeMatchStar, 
24    DisableUnicodeLineBreak, InvertMatches, UsePregeneratedUnicode
25};
26   
27bool AlgorithmOptionIsSet(RE_AlgorithmFlags flag);
28   
29extern int IfInsertionGap;
30
31const cl::OptionCategory * re_toolchain_flags();
32
33RE * regular_expression_passes(const Encoding encoding, RE * re_ast);
34
35pablo::PabloFunction * re2pablo_compiler(const Encoding encoding, RE * re_ast);
36   
37}
38#endif
Note: See TracBrowser for help on using the repository browser.