source: icGREP/icgrep-devel/icgrep/re/re_compiler.h @ 4194

Last change on this file since 4194 was 4194, checked in by nmedfort, 5 years ago

Modified RE module to use a LLVM-like dyn_cast system; added 'make' functions to hide RE constructors.

File size: 818 bytes
Line 
1/*
2 *  Copyright (c) 2014 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_COMPILER_H
8#define RE_COMPILER_H
9
10#include "re_re.h"
11#include "../utf_encoding.h"
12#include "../llvm_gen.h"
13#include <string>
14
15namespace re {
16
17struct processed_parsetree_results{
18    RE* re;
19    std::string remaining;
20};
21
22class RE_Compiler
23{
24public:
25    RE_Compiler();
26    LLVM_Gen_RetVal compile(bool show_compile_time,
27                            bool ascii_only,
28                            std::string basis_pattern,
29                            std::string gensym_pattern,
30                            UTF_Encoding encoding ,
31                            std::string input_string);
32};
33
34}
35
36#endif // RE_COMPILER_H
Note: See TracBrowser for help on using the repository browser.