Module driver

Module driver 

Source
Expand description

Invoke the various passes of the assembler.

Re-exportsยง

pub use output::write_user_program;

Modulesยง

output ๐Ÿ”’
Generate the output binary, as a tape image file.

Structsยง

Binary
The assembled program; a sequence of BinaryChunk instances with an optional entry point.
BinaryChunk
A contiguous sequence of words at some starting address.
NoRcBlock ๐Ÿ”’
Placeholder for the RC-block which will not allocate words.
OutputOptions
Indicates what kind of output the user wants.
Pass2Output ๐Ÿ”’
Output of pass 2 of the assembler.

Enumsยง

AssemblerPass1Or2Output ๐Ÿ”’
Describes the result of running the first (and possibly the second) pass of the assembler.
DirectiveMetaCommand
Represents the meta commands which are still relevant in the directive. Excludes things like the PUNCH meta command.

Functionsยง

assemble_file
Assemble input file, producing a tape image.
assemble_nonempty_input ๐Ÿ”’
Assemble a non-empty input.
assemble_pass1 ๐Ÿ”’
Pass 1 converts the program source into an abstract syntax representation.
assemble_pass2 ๐Ÿ”’
Pass 2 converts the abstract syntax representation into a Directive, which is closer to binary code.
assemble_pass3 ๐Ÿ”’
Pass 3 generates binary code.
assemble_source ๐Ÿ”’
Run all the passes of assembly, generating an output-ready Binary.
cleanup_control_chars ๐Ÿ”’
Pass-through a String instance; the output quotes control characters and backslashes.
fail_with_diagnostics ๐Ÿ”’
Convert raw parse errors into instances of ProgramError.
initial_symbol_table ๐Ÿ”’