From 16114b2ca358dbbef09cb5a8d3a843a0e11a3b88 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 9 Oct 2024 15:41:30 +0200 Subject: Adapt the assembler to the changes on the parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As of 184c39579227 ("Re-work the parser from scratch") the parser has a proper AST, and the assembler has to traverse it accordingly. Moreover, the assembler has been stripped from a lot of unneeded memory allocations and it's overall more keen on using mere references when possible. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/xixanta/src/lib.rs') diff --git a/lib/xixanta/src/lib.rs b/lib/xixanta/src/lib.rs index 5e81eba..0b68ac9 100644 --- a/lib/xixanta/src/lib.rs +++ b/lib/xixanta/src/lib.rs @@ -1,12 +1,10 @@ #[macro_use] extern crate lazy_static; -// TODO: be more mindful on what's exported outside. - pub mod assembler; -mod context; -mod errors; -pub mod instruction; +pub mod context; +pub mod errors; pub mod mapping; -mod opcodes; +pub mod node; +pub mod opcodes; pub mod parser; -- cgit v1.2.3