ROSE 0.11.145.192
NoneGenerator.h
1#ifndef Rosebud_NoneGenerator_H
2#define Rosebud_NoneGenerator_H
3#include <Rosebud/Generator.h>
4
5#include <Sawyer/CommandLine.h>
6
7namespace Rosebud {
8
10class NoneGenerator: public Generator {
11public:
12 using Ptr = std::shared_ptr<NoneGenerator>;
13
14protected:
15 NoneGenerator() {}
16
17public:
18 static Ptr instance();
19 virtual std::string name() const override;
20 virtual std::string purpose() const override;
21 virtual void generate(const Ast::ProjectPtr&) override;
22};
23
24} // namespace
25#endif
Base class for backend code generators.
Definition Generator.h:10
Generator that produces a YAML description of the input.
virtual std::string name() const override
Property: Every generator should have a unique name.
virtual void generate(const Ast::ProjectPtr &) override
Generate code.
virtual std::string purpose() const override
Property: Single-line description for documentation.
std::shared_ptr< Project > ProjectPtr
Shared-ownership pointer to a Project.
Rosebud is a tool to generate abstract syntax trees.
Definition Ast.h:14