pub(crate) fn assemble_source(
source_file_body: &str,
options: OutputOptions,
) -> Result<Binary, AssemblerFailure>
Expand description
Run all the passes of assembly, generating an output-ready
Binary
.
§Arguments
source_file_body
- the contents (body) of the source fileoptions
- what kind of output the user wants
§Errors
AssemblerFailure::BadTapeBlock
- output program block is too bigAssemblerFailure::BadProgram
- Syntax or semantic errorAssemblerFailure::MachineLimitExceeded
- Program is too large in some wayAssemblerFailure::InternalError
- Encountered a bug in the parser