Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub for new compiler, with -g and UseCompiler2020 options to sel…
…ect. (#184)
- Loading branch information
1 parent
13af52b
commit 6e8c7ad
Showing
6 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "Compiler.h" | ||
|
||
namespace Pol | ||
{ | ||
namespace Bscript | ||
{ | ||
namespace Compiler | ||
{ | ||
Compiler::Compiler() = default; | ||
|
||
Compiler::~Compiler() = default; | ||
|
||
bool Compiler::compile_file( const std::string& /*filename*/ ) | ||
{ | ||
return false; | ||
} | ||
|
||
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*/ ) | ||
{ | ||
} | ||
|
||
} // namespace Compiler | ||
} // namespace Bscript | ||
} // namespace Pol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef POLSERVER_COMPILER_H | ||
#define POLSERVER_COMPILER_H | ||
|
||
#include "../facility/Compiler.h" | ||
|
||
namespace Pol | ||
{ | ||
namespace Bscript | ||
{ | ||
namespace Compiler | ||
{ | ||
|
||
class Compiler : public Pol::Bscript::Facility::Compiler | ||
{ | ||
public: | ||
Compiler(); | ||
~Compiler() override; | ||
Compiler( const Compiler& ) = delete; | ||
Compiler& operator=( const Compiler& ) = delete; | ||
|
||
bool compile_file( const std::string& filename ) override; | ||
bool write_ecl( const std::string& pathname ) override; | ||
void write_listing( const std::string& pathname ) override; | ||
void write_dbg( const std::string& pathname, bool include_debug_text ) override; | ||
void write_included_filenames( const std::string& pathname ) override; | ||
}; | ||
|
||
} // namespace Compiler | ||
} // namespace Bscript | ||
} // namespace Pol | ||
|
||
#endif // POLSERVER_COMPILER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters