From 43abaa22299b7b1730c1d56312410d1bca7318aa Mon Sep 17 00:00:00 2001 From: Bryan English Date: Fri, 30 Jan 2026 22:52:58 -0500 Subject: [PATCH] fix imports and exports --- rel-lang/relc/src/parser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rel-lang/relc/src/parser.rs b/rel-lang/relc/src/parser.rs index a5a95ee..3214139 100644 --- a/rel-lang/relc/src/parser.rs +++ b/rel-lang/relc/src/parser.rs @@ -67,6 +67,7 @@ impl<'a> Module<'a> { } else { if last_was_export { exports.push(word); + last_was_export = false; } else { main.push(token.clone()); } @@ -75,6 +76,7 @@ impl<'a> Module<'a> { Token::String(string) => { if last_was_import { imports.push(string); + last_was_import = false; } else { main.push(token.clone()); } @@ -96,7 +98,7 @@ impl<'a> Module<'a> { instructions: main, }); } - + Ok(Module { words: result, imports, exports }) } -- 2.43.0