mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Add astbuilder/ SourceFileProcessor * Add ast/ ValueConsumer Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
22 lines
491 B
C++
22 lines
491 B
C++
#include "InstructionGenerator.h"
|
|
|
|
#include "compiler/ast/ValueConsumer.h"
|
|
#include "compiler/codegen/InstructionEmitter.h"
|
|
#include "compiler/file/SourceFileIdentifier.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
InstructionGenerator::InstructionGenerator( InstructionEmitter& emitter )
|
|
: emitter( emitter ),
|
|
emit( emitter )
|
|
{
|
|
}
|
|
|
|
void InstructionGenerator::visit_value_consumer( ValueConsumer& node )
|
|
{
|
|
visit_children( node );
|
|
|
|
emit.consume();
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|