pub fn assemble_file(
input_file_name: &OsStr,
output_file_name: &Path,
options: OutputOptions,
) -> Result<(), AssemblerFailure>Expand description
Assemble input file, producing a tape image.
§Arguments
input_file_name- name of the source code fileoutputoptions- where to write the tape imageoptions- what kind of output the user wants (in addition to the tape image)
§Errors
AssemblerFailure::Io- failed to read input / write outputAssemblerFailure::BadTapeBlock- output program block is too bigAssemblerFailure::BadProgram- Syntax or semantic errorAssemblerFailure::MachineLimitExceeded- Program is too large in some way§
AssemblerFailure::InternalError- Encountered a bug in the parser