summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-03-18 11:50:19 +1300
committerBen Bridle <ben@derelict.engineering>2025-03-18 11:50:29 +1300
commitf8a694267d3981b0437c05fc248406116ea9ec06 (patch)
treee7c0426f4278481490e269be7ccb0a710c22ebae /src/lib.rs
parent87cdf5e88fd1d0aaddb91e216c47344effd63ed3 (diff)
downloadassembler-f8a694267d3981b0437c05fc248406116ea9ec06.zip
Large restructure
Files were moved to be better organised, error messages were changed to be more general, and a Compiler type was added to the library.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3c9c28e..6c076d5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,17 +1,14 @@
-#![feature(io_error_more)]
-
-mod context;
mod errors;
mod locators;
-mod resolver;
+mod processors;
mod reports;
-mod source_unit;
-mod tokeniser;
+mod types;
-pub use context::*;
pub use errors::*;
pub use locators::*;
-pub use resolver::*;
+pub use processors::*;
pub use reports::*;
-pub use source_unit::*;
-pub use tokeniser::*;
+pub use types::*;
+
+pub type ParseFn = fn(&str, Option<&Path>) -> Option<Vec<Symbol>>;
+pub type PushFn = fn(&mut String, &SourceFile);