![]() |
nsbaci 1.0
|
Result of a compilation operation. More...
#include <compiler.h>


Public Member Functions | |
| CompilerResult () | |
| Default constructor creates a successful empty result. | |
| CompilerResult (std::vector< nsbaci::Error > errs) | |
| Constructs a failed result from a vector of errors. | |
| CompilerResult (nsbaci::Error error) | |
| Constructs a failed result from a single error. | |
| CompilerResult (CompilerResult &&) noexcept=default | |
| CompilerResult & | operator= (CompilerResult &&) noexcept=default |
| CompilerResult (const CompilerResult &)=default | |
| CompilerResult & | operator= (const CompilerResult &)=default |
| Public Member Functions inherited from nsbaci::BaseResult | |
| BaseResult () | |
| Default constructor creates a successful result. | |
| BaseResult (std::vector< nsbaci::Error > errs) | |
| Constructs a result from a vector of errors. | |
| BaseResult (nsbaci::Error error) | |
| Constructs a failed result from a single error. | |
| BaseResult (BaseResult &&) noexcept=default | |
| BaseResult & | operator= (BaseResult &&) noexcept=default |
| BaseResult (const BaseResult &)=default | |
| BaseResult & | operator= (const BaseResult &)=default |
Public Attributes | |
| InstructionStream | instructions |
| Generated p-code instructions. | |
| nsbaci::types::SymbolTable | symbols |
| Symbol table from compilation. | |
| Public Attributes inherited from nsbaci::BaseResult | |
| bool | ok |
| True if the operation succeeded. | |
| std::vector< nsbaci::Error > | errors |
| Errors encountered (empty if ok is true). | |
Result of a compilation operation.
Contains the outcome of a compilation attempt including success/failure status, any error messages, and on success, the generated instruction stream and symbol table.
|
inlineexplicit |
Constructs a failed result from a vector of errors.
| errs | Vector of compilation errors. |

|
inlineexplicit |
Constructs a failed result from a single error.
| error | The compilation error. |
