Design Patterns
risc_code_generator.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef STRUCTURAL_FACADE_RISC_CODE_GENERATOR_H_
7 #define STRUCTURAL_FACADE_RISC_CODE_GENERATOR_H_
8 
9 #include "bytecode_stream.h"
11 
12 namespace structural
13 {
14 namespace facade
15 {
17 {
18  public:
20 
21  virtual void Visit(VariableNodeInterface*) override;
22  virtual void Visit(StatementNodeInterface*) override;
23  virtual void Visit(ExpressionNodeInterface*) override;
24 
25  private:
26  BytecodeStream* output_;
27 };
28 }
29 }
30 
31 #endif
32 
Definition: shape_interface.h:11
Definition: bytecode_stream.h:15
Definition: risc_code_generator.h:16
virtual void Visit(VariableNodeInterface *) override
Definition: risc_code_generator.cc:16
Definition: code_generator_interface.h:17
Definition: statement_node_interface.h:15
Definition: variable_node_interface.h:15
RISCCodeGenerator(BytecodeStream *)
Definition: risc_code_generator.cc:14
Definition: expression_node_interface.h:15