forb
generator.hpp
1 //
2 // Created by gabriele on 01/12/18.
3 //
4 
5 #ifndef FORBCC_GENERATOR_H
6 #define FORBCC_GENERATOR_H
7 
8 #include <string>
9 
10 namespace forbcc {
12  class generator {
14  std::string _filename;
15 
16  public:
18  explicit generator(const std::string &filename) : _filename(filename) {};
19 
22  void execute() const;
23  };
24 }
25 
26 
27 #endif //FORBCC_GENERATOR_H
generator(const std::string &filename)
Creates a new generator, the given filename will be used as base for the output header and source fil...
Definition: generator.hpp:18
void execute() const
Generates code header and source files in current directory, it requires forbcc::module::global_modul...
Definition: generator.cpp:56
Generates source and header files from the (already populated) forbcc::module::global_module.
Definition: generator.hpp:12
Definition: code_ostream.hpp:11