--- /dev/null
+#ifndef TOOL_BUILTINGENERATOR_H_
+#define TOOL_BUILTINGENERATOR_H_
+
+#include <string>
+#include <vector>
+#include <msp/io/file.h>
+
+class BuiltinGenerator
+{
+private:
+ Msp::IO::Base &out;
+ std::vector<std::string> namespc;
+ std::vector<std::string> filenames;
+
+public:
+ BuiltinGenerator(Msp::IO::Base &);
+
+ void begin(const std::string &);
+ void add_file(const std::string &);
+ void end(const std::string &);
+
+private:
+ static std::string mangle_filename(const std::string &);
+};
+
+#endif