§tiro::compiler_settings
An instance of this type can be passed to the compiler to configure it. More...
#include "tiropp/compiler.hpp"
§Public Types
Name | |
---|---|
using std::function< void(const compiler_message &message)> | message_callback_type |
§Public Attributes
Name | |
---|---|
bool | enable_dump_cst Enables the compiler's dump_cst() method. |
bool | enable_dump_ast Enables the compiler's dump_ast() method. |
bool | enable_dump_ir Enables the compiler's dump_ir() method. |
bool | enable_dump_bytecode Enables the compiler's dump_bytecode() method. |
message_callback_type | message_callback Callback for diagnostic messages (may be empty). |
§Detailed Description
struct tiro::compiler_settings;
An instance of this type can be passed to the compiler to configure it.
The default constructor fills an instance with default values.
§Public Types Documentation
§using message_callback_type
using message_callback_type = std::function<void(const compiler_message& message)>;
§Public Attributes Documentation
§variable enable_dump_cst
bool enable_dump_cst = false;
Enables the compiler's dump_cst() method.
§variable enable_dump_ast
bool enable_dump_ast = false;
Enables the compiler's dump_ast() method.
§variable enable_dump_ir
bool enable_dump_ir = false;
Enables the compiler's dump_ir() method.
§variable enable_dump_bytecode
bool enable_dump_bytecode = false;
Enables the compiler's dump_bytecode() method.
§variable message_callback
message_callback_type message_callback;
Callback for diagnostic messages (may be empty).
The compiler will print to the process output stream if this is not set.
Updated on 2022-02-27 at 21:17:13 +0100