diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-10-14 20:40:39 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-10-14 21:05:05 +1300 |
commit | 981bb70e5077bd30ef85a0092117a875dcc614fc (patch) | |
tree | 45e614de74d17071ca1e68098df4d32266df85a3 /src/lib.rs | |
parent | ace5677f87c2bc042d8d5e807ccea9ddcd828c9e (diff) | |
download | torque-asm-981bb70e5077bd30ef85a0092117a875dcc614fc.zip |
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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::*; + + |