forb
preprocessor.hpp
1 //
2 // Created by gabriele on 20/11/18.
3 //
4 
5 #ifndef FORBCC_PREPROCESSOR_H
6 #define FORBCC_PREPROCESSOR_H
7 
8 #include <string>
9 
10 namespace forbcc {
12  class preprocessor {
14  std::string _in_filename;
15 
17  std::string _out_filename;
18 
19  public:
21  preprocessor(const std::string &in_filename,
22  const std::string &out_filename)
23  : _in_filename(in_filename),
24  _out_filename(out_filename) {};
25 
27  void execute() const;
28  };
29 }
30 
31 
32 #endif //FORBCC_PREPROCESSOR_H
void execute() const
Performs the preprocessing on given files.
Definition: preprocessor.cpp:197
Pre-processes the given input file and writes its output in the given output file.
Definition: preprocessor.hpp:12
Definition: code_ostream.hpp:11
preprocessor(const std::string &in_filename, const std::string &out_filename)
Constructs a new preprocessor instance.
Definition: preprocessor.hpp:21