c64_assembler/generator/mod.rs
1//! Generators to export to a .PRG or source code.
2use crate::{validator::AssemblerResult, Application};
3
4mod dasm;
5mod program;
6
7/// Generate an output for a given application.
8pub trait Generator {
9 type Output;
10
11 /// Generate an output for the given application.
12 fn generate(self, application: Application) -> AssemblerResult<Self::Output>;
13}
14
15pub use dasm::*;
16pub use program::*;