polserver/pol-core/bscript/compiler/Compiler.cpp
Eric Swanson 49ec52beae
Add ecompile mode: compare old and new compiler output (#187)
* Add -G / CompareCompilerOutput ecompile mode that runs old and new compiler and compares output.
Add LegacyFunctionOrder because parity needs to know how the old compiler ordered functions.

* Fix class/struct mixup, add to cmake sources
2020-08-05 09:01:07 +02:00

43 lines
815 B
C++

#include "Compiler.h"
namespace Pol
{
namespace Bscript
{
namespace Compiler
{
Compiler::Compiler() = default;
Compiler::~Compiler() = default;
bool Compiler::compile_file( const std::string& filename )
{
return compile_file( filename, nullptr );
}
bool Compiler::write_ecl( const std::string& /*pathname*/ )
{
return false;
}
void Compiler::write_listing( const std::string& /*pathname*/ )
{
}
void Compiler::write_dbg( const std::string& /*pathname*/, bool /*include_debug_text*/ )
{
}
void Compiler::write_included_filenames( const std::string& /*pathname*/ )
{
}
bool Compiler::compile_file( const std::string& /*filename*/,
const LegacyFunctionOrder* /*legacy_function_order*/ )
{
return false;
}
} // namespace Compiler
} // namespace Bscript
} // namespace Pol