diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-03-18 11:50:19 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-03-18 11:50:29 +1300 |
commit | f8a694267d3981b0437c05fc248406116ea9ec06 (patch) | |
tree | e7c0426f4278481490e269be7ccb0a710c22ebae /src/lib.rs | |
parent | 87cdf5e88fd1d0aaddb91e216c47344effd63ed3 (diff) | |
download | assembler-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.rs | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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); |