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/tokeniser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tokeniser.rs') diff --git a/src/tokeniser.rs b/src/tokeniser.rs index eeab6e6..4ff3d0b 100644 --- a/src/tokeniser.rs +++ b/src/tokeniser.rs @@ -3,6 +3,7 @@ use crate::*; use std::path::PathBuf; +/// Break a character stream down into individual tokens. pub struct Tokeniser { /// Characters waiting to be parsed, in reverse order. pub chars: Vec, -- cgit v1.2.3-70-g09d2