Skip to content

Commit

Permalink
Add definitions for members of CodeGenerator and RISCCodeGenerator.
Browse files Browse the repository at this point in the history
  • Loading branch information
BartVandewoestyne committed Feb 13, 2024
1 parent d9f3bf4 commit bc52f6b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Structural_Patterns/Facade/CodeGenerator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "CodeGenerator.h"

void CodeGenerator::Visit(StatementNode*)
{
// TODO
}

void CodeGenerator::Visit(ExpressionNode*)
{
// TODO
}

CodeGenerator::CodeGenerator(BytecodeStream& stream)
: _output(stream)
{}
16 changes: 16 additions & 0 deletions Structural_Patterns/Facade/RISCCodeGenerator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "RISCCodeGenerator.h"
#include "CodeGenerator.h"

RISCCodeGenerator::RISCCodeGenerator(BytecodeStream& stream)
: CodeGenerator(stream)
{}

void RISCCodeGenerator::Visit(StatementNode*)
{
// TODO
}

void RISCCodeGenerator::Visit(ExpressionNode*)
{
// TODO
}

0 comments on commit bc52f6b

Please sign in to comment.