From 80da2af821385b2fc89091e9ac37a047349da4bd Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 5 Feb 2025 12:58:02 +1300 Subject: 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. --- src/lib.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') 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::*; -- cgit v1.2.3-70-g09d2