source: icGREP/icgrep-devel/icgrep/re_compiler.h @ 4133

Last change on this file since 4133 was 4132, checked in by cameron, 5 years ago

Restructure - collapse cc_codegenobject into cc_compiler

File size: 1.4 KB
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 "hrtime.h"
11
12//Regular Expressions
13#include "re_re.h"
14#include "re_alt.h"
15#include "re_cc.h"
16#include "re_name.h"
17#include "re_end.h"
18#include "re_rep.h"
19#include "re_seq.h"
20#include "re_start.h"
21#include "re_nullable.h"
22#include "re_simplifier.h"
23#include "re_reducer.h"
24
25#include "printer_pablos.h"
26#include "printer_re.h"
27
28#include "utf8_encoder.h"
29#include "utf_encoding.h"
30
31#include "parseresult.h"
32#include "parsesuccess.h"
33#include "parsefailure.h"
34#include "re_parser.h"
35#include "cc_compiler.h"
36
37#include "pbix_compiler.h"
38#include "symbol_generator.h"
39#include "llvm_gen.h"
40
41//FOR TESTING AND AND ANALYSIS
42//#include "pbix_counter.h"
43
44#include <fstream>
45#include <iostream>
46#include <string>
47#include <sstream>
48#include <vector>
49#include <ctype.h>
50
51struct processed_parsetree_results{
52    RE* re;
53    std::string remaining;
54};
55
56class RE_Compiler
57{
58public:
59    RE_Compiler();
60    LLVM_Gen_RetVal compile(bool show_compile_time,
61                            bool ascii_only,
62                            std::string basis_pattern,
63                            std::string gensym_pattern,
64                            UTF_Encoding encoding ,
65                            std::string input_string);
66};
67
68#endif // RE_COMPILER_H
Note: See TracBrowser for help on using the repository browser.