summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-02-05 12:58:02 +1300
committerBen Bridle <ben@derelict.engineering>2025-02-05 13:03:36 +1300
commit80da2af821385b2fc89091e9ac37a047349da4bd (patch)
tree2ba50368301e041f8d1b99145ab0a1fe28f91571 /src/lib.rs
parent8d11be64f6c1747e7c4049105a6dd4ea9ab0d27f (diff)
downloadassembler-80da2af821385b2fc89091e9ac37a047349da4bd.zip
Implement source unit compilation, symbol resolution, error reporting
This library can now carry out all stages of assembly from collecting source fragments to resolving symbols to pruning unused libraries to generating a single compiled source file. Pretty-printing of state has also been implemented in this library. The source tree hierarchy, symbol resolution errors, and file read errors can all be printed in a tidy format.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2ebe010..b8ce3c9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,18 @@
-mod locators;
-pub use locators::*;
+#![feature(extract_if)]
+#![feature(io_error_more)]
+mod context;
+mod errors;
+mod locators;
+mod resolver;
+mod source_hierarchy;
+mod source_unit;
mod tokeniser;
+
+pub use context::*;
+pub use errors::*;
+pub use locators::*;
+pub use resolver::*;
+pub use source_hierarchy::*;
+pub use source_unit::*;
pub use tokeniser::*;