From 981bb70e5077bd30ef85a0092117a875dcc614fc Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 14 Oct 2025 20:40:39 +1300 Subject: Implement new intermediate stage Massive improvement. Label references can be used anywhere in the program, with the program being assembled repeatedly until all labels have stabilised. The bytecode stage will just be a tiny stage tacked onto the end, rather than the old bytecode stage that would resolve labels and expressions. --- src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index f0de207..e10361d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,11 +1,15 @@ +const MAX_ITERATIONS_TO_STABILISE: usize = 4; + mod stages; mod types; -mod formats; +// mod formats; pub use stages::*; pub use types::*; -pub use formats::*; +// pub use formats::*; pub use assembler::*; use log::*; + + -- cgit v1.2.3-70-g09d2